Andrew May: ContentType Ids

Friday, 15 September 2006 10:02 by tariq

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: , , , ,

Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed
Comments are closed