Project Description
This utility creates a hierarchally representation of a WSS 3.0 / MOSS 2007 Site Collection and generates a C# Source Code File (SPConstant.cs) with a nested structure of structs with static const string fields. This enables you to do the following:

SPList list = web.Lists[SPConstant.Lists.Tasklist.Name];

You will then just have to regenerate the SPConstant file (eg. from within VS 2005 or from Command line) to update the name. Description is added to the XML-comments in the generated file as a added bonus so you get descriptions on Fields, List, Webs etc. to easily identify a specific field.

Usage
To use the program you simply run the SPConstantGen.exe utility and provide the necessary parameters (url is the only required)

SPConstantGen.exe -Url "http://myspsite.com" -Verbose

SPConstantGen.JPG

Last edited Oct 24, 2007 at 9:50 PM by anderskj1, version 10