Verifying your Xaml localization tags

In a Xaml-project I am working with, we are localizing the GUI, i.e. displaying the GUI in different languages like English, French, German etc. This is done by adding a x:Uid tag to the xaml controls and a string to a resource file. The problem is, there is no check that the xaml tag and the resource id match. And there is no runtime error or warning that a string resource is missing, the app just silently shows a default value.

To solve the problem I wrote a tool that plugs into Visual Studio and generates a build error if any uid tag does not have matching resource id. The tool, XamlUidValidate, is open source and available as a NuGet package.

More info: http://xuv.codeplex.com
NuGet: http://www.nuget.org/packages/XamlUidValidate/

Leave a Reply

Close Menu