| title | UidManager Task | |||||
|---|---|---|---|---|---|---|
| description | Learn how the MSBuild UidManager task checks, updates, or removes unique identifiers (UIDs), to localize all XAML elements in the source XAML files. | |||||
| ms.date | 11/04/2016 | |||||
| ms.topic | reference | |||||
| dev_langs |
|
|||||
| helpviewer_keywords |
|
|||||
| author | ghogen | |||||
| ms.author | ghogen | |||||
| ms.subservice | msbuild |
The xref:Microsoft.Build.Tasks.Windows.UidManager task checks, updates, or removes unique identifiers (UIDs), in order to localize all XAML elements that are included in the source XAML files.
| 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. |
The following example uses the xref:Microsoft.Build.Tasks.Windows.UidManager task to check that the specified source XAML files contain XAML elements that have appropriate UIDs.
<Project>
<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>