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).
Assembly: Microsoft.VisualStudio.Tools.Office.BuildTasks (in Microsoft.VisualStudio.Tools.Office.BuildTasks.dll)
Microsoft.Build.Utilities::Task
Microsoft.VisualStudio.Tools.Office.BuildTasks::BuildTask
Microsoft.VisualStudio.Tools.Office.BuildTasks::EmbedTypeLibrary
| Name | Description | |
|---|---|---|
![]() | EmbedTypeLibrary() | Initializes a new instance of the EmbedTypeLibrary class. |
| Name | Description | |
|---|---|---|
![]() | Assembly | Gets or sets the assembly from which to extract the type library. |
![]() | BuildEngine | (Inherited from Task.) |
![]() | BuildEngine2 | (Inherited from Task.) |
![]() | BuildEngine3 | (Inherited from Task.) |
![]() | BuildEngine4 | (Inherited from Task.) |
![]() | HostObject | (Inherited from Task.) |
![]() | KeyContainer | Gets or sets the path to the cryptographic key container. |
![]() | KeyFile | Gets or sets the path to the cryptographic key file. |
![]() | Log | (Inherited from Task.) |
![]() | ReferencePaths | 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. |
![]() | TypeLibFile | Gets or sets the type library name that is extracted from the Assembly. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Execute() | 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().) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (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.

