RegisterAssembly.TypeLibFiles Property


This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the type library to generate from the specified assembly.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

public ITaskItem[] TypeLibFiles { get; set; }

Property Value

Type: Microsoft.Build.Framework.ITaskItem[]

The type library to generate from the specified assembly.

The generated type library contains definitions of the accessible types defined within the assembly. The type library is only generated if one of the following is true:

  • A type library of that name does not exist at that location.

  • A type library exists but it is older than the assembly being passed in.

If the type library is newer than the assembly being passed, a new one will not be created, but the assembly will still be registered.

If this property is specified, it must have the same number of items as the Assemblies property or the task will fail. If no inputs are specified, the task will default to the name of the assembly and change the extension of the item to .tlb.

Return to top