EmbedTypeLibrary Class

EmbedTypeLibrary Class

 

Defines an MSBuild task that extracts a type library from an Office customization assembly into a DLL to enable interop with Visual Basic for Applications (VBA).

Namespace:   Microsoft.VisualStudio.Tools.Office.BuildTasks
Assembly:  Microsoft.VisualStudio.Tools.Office.BuildTasks (in Microsoft.VisualStudio.Tools.Office.BuildTasks.dll)

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.VisualStudio.Tools.Office.BuildTasks.BuildTask
      Microsoft.VisualStudio.Tools.Office.BuildTasks.EmbedTypeLibrary

public sealed class EmbedTypeLibrary : BuildTask

NameDescription
System_CAPS_pubmethodEmbedTypeLibrary()

Initializes a new instance of the EmbedTypeLibrary class.

NameDescription
System_CAPS_pubpropertyAssembly

Gets or sets the assembly from which to extract the type library.

System_CAPS_pubpropertyBuildEngine

(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine2

(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine3

(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine4

(Inherited from Task.)

System_CAPS_pubpropertyHostObject

(Inherited from Task.)

System_CAPS_pubpropertyKeyContainer

Gets or sets the path to the cryptographic key container.

System_CAPS_pubpropertyKeyFile

Gets or sets the path to the cryptographic key file.

System_CAPS_pubpropertyLog

(Inherited from Task.)

System_CAPS_pubpropertyReferencePaths

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets an array of MSBuild items that can be consumed and emitted by tasks.

System_CAPS_pubpropertyTypeLibFile

Gets or sets the type library name that is extracted from the Assembly.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecute()

Extracts a type library from an Office customization assembly into a file, and embeds that file as an unmanaged resource into an assembly.(Overrides Task.Execute().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Set all of the EmbedTypeLibrary properties and then call Execute to run this task.

The Microsoft Build Engine uses Microsoft.VisualStudio.Tools.Office.BuildTasks to build and deploy Office solutions. However, you can create your own build system by using these classes and the MSBuild XML-based project files. For more information, see MSBuild Reference.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft