Geeks With Blogs

Tangible Thoughts SharePoint, MOSS? and all the other questions

In case some of you missed it,

Andrew May has a good post on how to create content type ids for feature definitions.

 

Now as you might gather, creating features requires a whole heap of GUIDs on your hand.

So a tool that can do this

static void Main(string [] args)
{
    if (args.Length == 0)
    {
        // Show GUID Form}
    else
    {
        Guid g = Guid.NewGuid();

        if (args[0].ToLower() == "d")
        {

            Clipboard.SetDataObject(
            g.ToString("D"), true);
        }
        if (args[0].ToLower() == "n")
        {
            Clipboard.SetDataObject(
            g.ToString("N"), true);
        }
    }
}

so that new a GUID goes into clipboard everytime you run it should come in real handy.

tags: , , , ,

Cross-posted from tariqayad.com

Posted on Friday, September 15, 2006 2:33 AM Programming , SharePoint | Back to top


Comments on this post: Andrew May: ContentType Ids

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Tariq | Powered by: GeeksWithBlogs.net