UidManager Task

Note

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

The UidManager task checks, updates, or removes unique identifiers (UIDs), in order to localize all Extensible Application Markup Language (XAML) elements that are included in the source XAML files.

Task Parameters

Parameter Description
IntermediateDirectory Optional String parameter.

Specifies the directory that is used to back up the source XAML files that are specified by the MarkupFiles parameter.
MarkupFiles Required ITaskItem[] parameter.

Specifies the source XAML files to include for UID checking, updating, or removing.
Task Required String parameter.

Specifies the UID management task that you want to perform. Valid options are Check, Update, or Remove.

Example

The following example uses the UidManager task to check that the specified source XAML files contain XAML elements that have appropriate UIDs.

<Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003">  
  <UsingTask   
    TaskName="Microsoft.Build.Tasks.Windows.UidManager"   
    AssemblyFile="C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationBuildTasks.dll" />  
  <Target Name="UidManagerTask">  
    <UidManager  
      Task="Check"  
      MarkupFiles="Page1.xaml;Page2.xaml"  
      IntermediateDirectory="c:\UidManagerIntermediateDirectory" />  
  </Target>  
</Project>  

See Also

WPF MSBuild Reference
Task Reference
MSBuild Reference
Task Reference
Building a WPF Application (WPF)
How to: Localize an Application