regsvr32 "C:\Program Files\lotus\notes\nlsxbe.dll"
進(jìn)入 " Visual Studio 2005 命令提示"
C:\Lotus\Notes>sn -k LotusNotes.snk
C:\Lotus\Notes>sn -p LotusNotes.snk LotusNotesPublic.snk
C:\Lotus\Notes>sn -t LotusNotesPublic.snk
C:\Lotus\Notes>tlbimp domobj.tlb /keyfile:Lotusnotes.snk
Microsoft (R) .NET Framework Type Library to Assembly Converter 2.0.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Type library imported to Domino.dll
再把Domino.dll 拖到Windows\assembly (GAC) 目錄下.實(shí)現(xiàn)部署.
網(wǎng)站中要使用Notes 必須在Server 上進(jìn)行以下權(quán)限設(shè)置:
Domain Users 和 Users 加上寫的權(quán)限.
Tlbimp 命令
C:\Lotus>tlbimp
Microsoft (R) .NET Framework Type Library to Assembly Converter 2.0.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Syntax: TlbImp TypeLibName [Options]
Options:
/out:FileName File name of assembly to be produced
/namespace:Namespace Namespace of the assembly to be produced
/asmversion:Version Version number of the assembly to be produced
/reference:FileName File name of assembly to use to resolve references
/tlbreference:FileName File name of typelib to use to resolve references
/publickey:FileName File containing strong name public key
/keyfile:FileName File containing strong name key pair
/keycontainer:FileName Key container holding strong name key pair
/delaysign Force strong name delay signing
/unsafe Produce interfaces without runtime security checks
/noclassmembers Prevents TlbImp from adding members to classes
/nologo Prevents TlbImp from displaying logo
/silent Suppresses all output except for errors
/verbose Displays extra information
/primary Produce a primary interop assembly
/sysarray Import SAFEARRAY as System.Array
/machine:MachineType Create an assembly for the specified machine type
/transform:TransformName Perform the specified transformation
/strictref Only use assemblies specified using /reference and
registered PIAs
/strictref:nopia Only use assemblies specified using /reference and
ignore PIAs
/? or /help Display this usage message
The assembly version must be specified as: Major.Minor.Build.Revision.
Multiple reference assemblies can be specified by using the /reference option
multiple times.
Supported machine types:
X86
X64
Itanium
Agnostic
Supported transforms:
SerializableValueClasses Mark all value classes as serializable
DispRet Apply the [out, retval] parameter transformation
to methods of disp only interfaces