ResXCop

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Download version 1.0

Overview:

ResXCop is a simple command line tool I use to enforce my no-binary-data-in-resx-files policy, among my dev team.

In its default mode, it simply warns of the presence of binary (base64) data elements...  in its aggressive mode (/v switch) it will remove those base64 elements, and also back-port any CLR references it finds to the specified value.  For example, the /v=1.0.3300.0 switch is useful for preparing a build to target .NET v1.0.

For more information, see my accompanying blog entry on ResX files, localization, and down-level building.

Requirements:

History:

v1.0
Initial release.

Installation:

Simply copy ResXCop.exe into your %Path%, or wherever you like, and you're good to go.

Usage:

ResXCop.exe <resxfile> [/v=1.0.3300.0]

  <resxfile> = the target ResX file to inspect, or clean

If no binary resources (base64 elements) are found, the return code will be zero. If one or more binary resources are found, or if any other errors occur, the return code will be non-zero.

Updated: Thu, 23 Dec 2004 21:30:44 GMT