UidManager Task

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

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.

ParameterDescription
IntermediateDirectoryOptional String parameter.

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

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

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

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

<Project xmlns="http://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>  

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

Show: