GetAssemblyIdentity Task


This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the assembly identities from the specified files and outputs the identity information.

Task Parameters

The following table describes the parameters of the GetAssemblyIdentity task.

Parameter Description
Assemblies Optional ITaskItem[] output parameter.

Contains the retrieved assembly identities.
AssemblyFiles Required ITaskItem[] parameter.

Specifies the files to retrieve identities from.


The items output by the Assemblies parameter contain item metadata entries named Version, PublicKeyToken, and Culture.

In addition to the parameters listed above, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension Base Class.


The following example retrieves the identity of the files specified in the MyAssemblies item, and outputs them into the MyAssemblyIdentities item.

<Project xmlns="">  
        <MyAssemblies Include="File1.dll;File2.dll" />  
    <Target Name="RetrieveIdentities>  

See Also

Task Reference