EmbedTypeLibrary Class

Definition

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).

public ref class EmbedTypeLibrary sealed : Microsoft::VisualStudio::Tools::Office::BuildTasks::BuildTask
public sealed class EmbedTypeLibrary : Microsoft.VisualStudio.Tools.Office.BuildTasks.BuildTask
type EmbedTypeLibrary = class
    inherit BuildTask
Public NotInheritable Class EmbedTypeLibrary
Inherits BuildTask
Inheritance
EmbedTypeLibrary

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.

Constructors

EmbedTypeLibrary()

Initializes a new instance of the EmbedTypeLibrary class.

Properties

Assembly

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

KeyContainer

Gets or sets the path to the cryptographic key container.

KeyFile

Gets or sets the path to the cryptographic key file.

ReferencePaths

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.

Methods

Execute()

Extracts a type library from an Office customization assembly into a file, and embeds that file as an unmanaged resource into an assembly.

Applies to