Karine Bosch’s Blog

On SharePoint

Create Guid in Visual Studio 2008

It is possible someone else already blogged about it but a lot of SharePoint developers seem to have problems to generate GUIDs when using Visual Studio 2008. We are used to click the Tools menu and choose Create Guid but unfortunately this option is disabled when you start using Visual Studio 2008.

Create Guid

This is because the guidgen.exe tool is located somewhere else now: it comes with the Windows SDK now.

I’ve seen a lot of inventive ways to create Guids the last couple of months but copy/paste an existing one and changing a part of it is definitely not the way to go. 

You can enable the Create Guid option again in Visual Studio 2008.

1. Choose the Tools -> External Tools...

2. Click the Browse (…) button and find the guidgen.exe in the C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\ folder.

GuidGen change

3. Click the OK button.

There you go. Creating GUIDs is now as easy as it was in Visual Studio 2005. You have no excuse anymore to manually edit a copied Guid. smile

Create Guid


May 28, 2009 - Posted by | Uncategorized


  1. Excellent tip!! I was looking for this info. Thanks a lot

    Comment by Panks | June 24, 2009 | Reply

  2. Hi Karine,

    Perhaps you will like this small extension of VS too. You can insert a fresh GUID or the current project’s assembly name using one keypress:

    Hope it helps! And keep up your wonderful blog. I totally dig all the control explanations!


    ps Are we collegues now? 🙂

    Comment by Wouter van Vugt | June 27, 2009 | Reply

  3. thanks!
    went crazy when I couldnt find this in the menu. I could swear that it had been there before. must have used it in a previous version of Visual studio!

    wrote a blogpost (in swedish) about this and credited you of course!


    Comment by rewdboy | September 29, 2009 | Reply

  4. Thanks, I was looking for this.

    Comment by Robert | October 19, 2009 | Reply

  5. Great post! Thank you very much.

    Comment by Sinh Nguyen | November 26, 2009 | Reply

  6. […] See a better crafted posting with pretty pictures and idiot proof step-by-step guide@ https://karinebosch.wordpress.com/2009/05/28/create-guid-in-visual-studio-2008/ […]

    Pingback by Restoring an old friend – Visual Studio 2008 Create GUID tool « Edward Wilde | November 29, 2009 | Reply

  7. Tanks a lot!, a great post and very easy XD

    Comment by David | February 11, 2010 | Reply

  8. […] Read here for more […]

    Pingback by Enable Create GUID in VS2008 « Dhondiyals's Blog | February 13, 2010 | Reply

  9. Thank you Mam..

    Comment by sid | May 8, 2010 | Reply

  10. Thank you!

    Comment by sxc | June 24, 2010 | Reply

  11. thank you

    Comment by shekar | January 18, 2011 | Reply

  12. Excellent. Thanks

    Comment by Georgie | April 19, 2011 | Reply

  13. Why do some GUID pop-up windows have 6 options?

    Comment by smc | April 20, 2012 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: