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).
Inheritance Hierarchy
System.Object
Microsoft.Build.Utilities.Task
Microsoft.VisualStudio.Tools.Office.BuildTasks.BuildTask
Microsoft.VisualStudio.Tools.Office.BuildTasks.EmbedTypeLibrary
Namespace: Microsoft.VisualStudio.Tools.Office.BuildTasks
Assembly: Microsoft.VisualStudio.Tools.Office.BuildTasks (in Microsoft.VisualStudio.Tools.Office.BuildTasks.dll)
Syntax
'Declaration
Public NotInheritable Class EmbedTypeLibrary _
Inherits BuildTask
public sealed class EmbedTypeLibrary : BuildTask
The EmbedTypeLibrary type exposes the following members.
Constructors
Name | Description | |
---|---|---|
EmbedTypeLibrary | Initializes a new instance of the EmbedTypeLibrary class. |
Top
Properties
Name | Description | |
---|---|---|
Assembly | Gets or sets the assembly from which to extract the type library. | |
BuildEngine | Gets or sets the instance of the IBuildEngine object used by the task. (Inherited from Task.) | |
BuildEngine2 | Gets the instance of the IBuildEngine2 object used by the task. (Inherited from Task.) | |
BuildEngine3 | Gets the instance of the IBuildEngine3 object used by the task. (Inherited from Task.) | |
BuildEngine4 | Gets the instance of the IBuildEngine4 object used by the task. (Inherited from Task.) | |
HostObject | Gets or sets the host object associated with the task. (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 | Gets an instance of a TaskLoggingHelper class containing task logging methods. (Inherited from Task.) | |
ReferencePaths | Infrastructure. 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. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current 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 | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.