Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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. |
Remarks
The items output by the Assemblies parameter contain item metadata entries named Version, PublicKeyToken, and Culture.
Example
The following example retrieves the identity of the files specified in the MyAssemblies item, and outputs them into the MyAssemblyIdentities item.
<Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<MyAssemblies Include="File1.dll;File2.dll" />
</ItemGroup>
<Target Name="RetrieveIdentities>
<GetAssemblyIdentity
AssemblyFiles="@(MyAssemblies)"
<Output
TaskParameter="Assemblies"
ItemName="MyAssemblyIdentities"
</Target>
</Project>