Tlbimp 生成c#互操作com组件dll

版权声明:本人的作品仅供研究目的,如果读者利用本人的作品从事其他行为,与本人无关 https://blog.csdn.net/oShuangYue12/article/details/81451723

Tlbimp C:\Windows\System32\HelpPaneProxy.dll F:\MyWorkSpace\HelpPaneProxySharp.dll

Microsoft (R) .NET Framework Type Library to Assembly Converter 4.0.303
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 produ
/reference:FileName File name of assembly to use to resolve re
/tlbreference:FileName File name of typelib to use to resolve ref
/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
/product:Product The name of the product with which this as
is distributed
/productversion:Version The version of the product with which this
assembly is distributed
/company:Company The name of the company that produced this
assembly
/copyright:Copyright Describes all copyright notices, trademark
registered trademarks that apply to this a
/trademark:Trademark Describes all trademarks and registered tr
that apply to this assembly
/unsafe Produce interfaces without runtime securit
/noclassmembers Prevents TlbImp from adding members to cla
/nologo Prevents TlbImp from displaying logo
/silent Suppresses all output except for errors
/silence:WarningNumber Suppresses output for the given warning (C
be used with /silent)
/verbose Displays extra information
/primary Produce a primary interop assembly
/sysarray Import SAFEARRAY as System.Array
/machine:MachineType Create an assembly for the specified machi
/transform:TransformName Perform the specified transformation
/strictref Only use assemblies specified using /refer
registered PIAs
/strictref:nopia Only use assemblies specified using /refer
ignore PIAs
/VariantBoolFieldToBool Convert VARIANT_BOOL field in structures t
/Legacy35 Use legacy TlbImp 3.5 behavior.
/? 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
multiple times.

Supported machine types:
X86
X64
Itanium
ARM
Agnostic

Supported transforms:
SerializableValueClasses Mark all value classes as serializable
DispRet Apply the [out, retval] parameter transfor
to methods of disp only interfaces

A resource ID can optionally be appended to the TypeLibName when import
type library from a module containing multiple type libraries.
example: TlbImp MyModule.dll\1

猜你喜欢

转载自blog.csdn.net/oShuangYue12/article/details/81451723
今日推荐