Teilen über


UidManager task

The UidManager task checks, updates, or removes unique identifiers (UIDs), in order to localize all 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="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>

See also