Project Description

Validate that all your xaml Uid declarations have a resource. Hooks into the VisualStudio build process and gives build errors if any resource is missing.

Available as NuGet package:



A Windows Store app can be globalized, e.i. prepared to show the GUI in different languages, like French, German and English. This is done by adding a uid tag in xaml and adding a string in a resource-file.

<TextBlock x:Uid="ResourceName" Text="" />

More info here:

The Problem

If you add a uid tag, there is no check that you have a matching string resource. And there is no runtime error or warning that a resource is missing. The app just silently shows the default value. That you have missing resources might not show until you do localization testing, and that is often done very late in the development cycle, leading to high costs fixing the problem.

The Solution

XamlUidValidate solves the problem by hooking into the build process in VisualStudio. Each time you build it verifies that all uid tags has matching resources and generates build errors if any resource is missing. It also generates build warnings if you have resources without matching uids.

XamlUidValidate is available as a NuGet package and you install it by adding it to your project, just like any other NuGet package. Note that XamlUidValidate is a build time check only. It will not add any assemblies or other files to you app.

Last edited Feb 20, 2014 at 1:38 PM by JohanOlsson, version 6