locked
What GUID format for Features.xml RRS feed

  • Question

  • Hello. I want to add a GUID to my feature.xml file to cusomize a SP web application. In VS 9, what GUID format do I use? In the Create GUID, which of the four formats do I use? I suspect it is the Registry Format, but I'm not sure. Keep in mind, that I am need to SP developement.

    Thanks,
    Toney
    Thursday, July 23, 2009 2:27 AM

Answers

  • You need to use the following format: {B77C383F-2EFC-40a7-8477-114A59D6F088} . And please don't remove the brackets :)

    Enjoy.
    BLOG: iTechnology Blog
    Thursday, July 23, 2009 2:59 AM
  • Hi Toney,

    In VS, on Tools menu select create GUID -> 4th GUID format(Registry format) -> click on Copy button -> and paste under your features ID=" "

    regards,




    N i T i N
    Thursday, July 23, 2009 5:24 AM

All replies

  • You need to use the following format: {B77C383F-2EFC-40a7-8477-114A59D6F088} . And please don't remove the brackets :)

    Enjoy.
    BLOG: iTechnology Blog
    Thursday, July 23, 2009 2:59 AM
  • Thanks. I just read somewhere to remove the brackets, but that doesn't make sense. Thanks for the reply.

    toney
    Thursday, July 23, 2009 4:49 AM
  • Hi Toney,

    In VS, on Tools menu select create GUID -> 4th GUID format(Registry format) -> click on Copy button -> and paste under your features ID=" "

    regards,




    N i T i N
    Thursday, July 23, 2009 5:24 AM
  • Why? I think it makes no sense if you use brackets or not...

    Online GUID Generator : http://www.guidgenerator.com
    Friday, July 24, 2009 9:59 AM
  • You need to use the following format: {B77C383F-2EFC-40a7-8477-114A59D6F088} . And please don't remove the brackets :)

    Enjoy.
    BLOG: iTechnology Blog

    I don't think Feature.xml is supposed to have the GUID in brackets.

    http://msdn.microsoft.com/en-us/library/ms475601.aspx

    PS
    Also - http://www.setfocus.com/technicalarticles/robertholmes/Sharepoint-content-types-and-features.aspx (search for "removing the curly brackets")

    Regards,
    Hristo Yankov

    My blog - http://blog.myitechnology.com

    (Was my post helpful? If so, please indicate)
    Friday, July 24, 2009 10:08 AM
  • Hii,

    you also use brackets as {4DC49DD9-6B54-46b6-921E-C30D9449FF05}
    or it also works if you remove brackets from GUID...

    thanks,

    N i T i N
    • Proposed as answer by daniel.larson Friday, July 24, 2009 3:44 PM
    Friday, July 24, 2009 10:29 AM
  • I agree with Hristo.  If you check the feature schema on MSDN http://msdn.microsoft.com/en-us/library/ms475601.aspx it doesn't include curly brackets.
    My SharePoint Blog - http://www.davehunter.co.uk/blog
    Friday, July 24, 2009 10:33 AM
  • For the feature it works both ways - with and without the curly brackets. I'm not sure if this is the case since some of the service packs though - pretty sure it works with SP1 and SP2.  I started using the {} in the feature GUID too since I had a problem with one content type where for some reason I didn't put the curly brackets for the Field elements and had to troubleshoot it for some time, before I figure out what is wrong. No more confusion whether to put the brackets or not and where.  


    BLOG: iTechnology Blog
    Saturday, July 25, 2009 4:07 AM
  • A small note about the curly brackets:

    When you create feature GUIDs or Element GUIDs and things like that, you can choose to either include or exclude the curly brackets. It doesn't matter.

    However when working with field references, fields and stuff like that (e.g. <FieldRef> tags, <Field> etc) you'll need to use the brackets, otherwise SharePoint will fail to understand.
    Tobias Zimmergren
    Microsoft MCP, MCTS, MCT, MVP (SharePoint)
    Blog: www.zimmergren.net
    Twitter: twitter.com/zimmergren
    Thursday, July 30, 2009 3:26 PM