GUIDs in a SLN file










13















Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs



Does anyone know for sure where these come from, and what they are used for?










share|improve this question
























  • any final solution with full source code sample working about it ?

    – Kiquenet
    Dec 3 '13 at 11:35















13















Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs



Does anyone know for sure where these come from, and what they are used for?










share|improve this question
























  • any final solution with full source code sample working about it ?

    – Kiquenet
    Dec 3 '13 at 11:35













13












13








13


3






Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs



Does anyone know for sure where these come from, and what they are used for?










share|improve this question
















Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs



Does anyone know for sure where these come from, and what they are used for?







.net visual-studio solution






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 13 '13 at 14:09









Richard J. Ross III

46.3k22118183




46.3k22118183










asked Sep 9 '08 at 22:23









FlySwatFlySwat

115k63231300




115k63231300












  • any final solution with full source code sample working about it ?

    – Kiquenet
    Dec 3 '13 at 11:35

















  • any final solution with full source code sample working about it ?

    – Kiquenet
    Dec 3 '13 at 11:35
















any final solution with full source code sample working about it ?

– Kiquenet
Dec 3 '13 at 11:35





any final solution with full source code sample working about it ?

– Kiquenet
Dec 3 '13 at 11:35












2 Answers
2






active

oldest

votes


















14














Neither GUID is the same GUID as from AssemblyInfo.cs (that is the GUID for the assembly itself, not tied to Visual Studio but the end product of the build).



So, for a typical line in the sln file (open the .sln in notepad or editor-of-choice if you wish to see this):



Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"


The second GUID is a unique GUID for the project itself. The solution file uses this to map other settings to that project:



GlobalSection(ProjectConfigurationPlatforms) = postSolution
55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.ActiveCfg = Debug|Any CPU
55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.Build.0 = Debug|Any CPU
55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.ActiveCfg = Release|Any CPU
55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection


The first GUID is actually a GUID that is the unique GUID for the solution itself (I believe). If you have a solution with more than one project, you'll actually see something like the following:



Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"
EndProject
Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "Composite", "..CompositeWPFSourceCALCompositeComposite.csproj", "77138947-1D13-4E22-AEE0-5D0DD046CA34"
EndProject





share|improve this answer

























  • any parsing in C# for sln file? It's a pity sln file is not XML format. @JasonOlson

    – Kiquenet
    Dec 3 '13 at 11:35







  • 5





    The first GUID identifies the project type, as (briefly) mentioned here -- msdn.microsoft.com/en-us/library/bb165951(v=vs.90).aspx. Also see mztools.com/Articles/2008/MZ2008017.aspx for a list of project types. (I'm still wondering if there's a special guid for a solution folder ...)

    – yoyo
    Dec 5 '13 at 20:20







  • 1





    Thanks for the link @yoyo. The folder GUID seems to be 2150E333-8FDC-42A3-9474-1A3956D46DE8.

    – Giles
    Sep 16 '16 at 12:06


















6














According to MSDN:




[The Project] statement contains the
unique project GUID and the project
type GUID. This information is used by
the environment to find the project
file or files belonging to the
solution, and the VSPackage required
for each project. The project GUID is
passed to IVsProjectFactory to load
the specific VSPackage related to the
project, then the project is loaded by
the VSPackage.







share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53041%2fguids-in-a-sln-file%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    14














    Neither GUID is the same GUID as from AssemblyInfo.cs (that is the GUID for the assembly itself, not tied to Visual Studio but the end product of the build).



    So, for a typical line in the sln file (open the .sln in notepad or editor-of-choice if you wish to see this):



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"


    The second GUID is a unique GUID for the project itself. The solution file uses this to map other settings to that project:



    GlobalSection(ProjectConfigurationPlatforms) = postSolution
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.Build.0 = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.ActiveCfg = Release|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection


    The first GUID is actually a GUID that is the unique GUID for the solution itself (I believe). If you have a solution with more than one project, you'll actually see something like the following:



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"
    EndProject
    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "Composite", "..CompositeWPFSourceCALCompositeComposite.csproj", "77138947-1D13-4E22-AEE0-5D0DD046CA34"
    EndProject





    share|improve this answer

























    • any parsing in C# for sln file? It's a pity sln file is not XML format. @JasonOlson

      – Kiquenet
      Dec 3 '13 at 11:35







    • 5





      The first GUID identifies the project type, as (briefly) mentioned here -- msdn.microsoft.com/en-us/library/bb165951(v=vs.90).aspx. Also see mztools.com/Articles/2008/MZ2008017.aspx for a list of project types. (I'm still wondering if there's a special guid for a solution folder ...)

      – yoyo
      Dec 5 '13 at 20:20







    • 1





      Thanks for the link @yoyo. The folder GUID seems to be 2150E333-8FDC-42A3-9474-1A3956D46DE8.

      – Giles
      Sep 16 '16 at 12:06















    14














    Neither GUID is the same GUID as from AssemblyInfo.cs (that is the GUID for the assembly itself, not tied to Visual Studio but the end product of the build).



    So, for a typical line in the sln file (open the .sln in notepad or editor-of-choice if you wish to see this):



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"


    The second GUID is a unique GUID for the project itself. The solution file uses this to map other settings to that project:



    GlobalSection(ProjectConfigurationPlatforms) = postSolution
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.Build.0 = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.ActiveCfg = Release|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection


    The first GUID is actually a GUID that is the unique GUID for the solution itself (I believe). If you have a solution with more than one project, you'll actually see something like the following:



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"
    EndProject
    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "Composite", "..CompositeWPFSourceCALCompositeComposite.csproj", "77138947-1D13-4E22-AEE0-5D0DD046CA34"
    EndProject





    share|improve this answer

























    • any parsing in C# for sln file? It's a pity sln file is not XML format. @JasonOlson

      – Kiquenet
      Dec 3 '13 at 11:35







    • 5





      The first GUID identifies the project type, as (briefly) mentioned here -- msdn.microsoft.com/en-us/library/bb165951(v=vs.90).aspx. Also see mztools.com/Articles/2008/MZ2008017.aspx for a list of project types. (I'm still wondering if there's a special guid for a solution folder ...)

      – yoyo
      Dec 5 '13 at 20:20







    • 1





      Thanks for the link @yoyo. The folder GUID seems to be 2150E333-8FDC-42A3-9474-1A3956D46DE8.

      – Giles
      Sep 16 '16 at 12:06













    14












    14








    14







    Neither GUID is the same GUID as from AssemblyInfo.cs (that is the GUID for the assembly itself, not tied to Visual Studio but the end product of the build).



    So, for a typical line in the sln file (open the .sln in notepad or editor-of-choice if you wish to see this):



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"


    The second GUID is a unique GUID for the project itself. The solution file uses this to map other settings to that project:



    GlobalSection(ProjectConfigurationPlatforms) = postSolution
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.Build.0 = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.ActiveCfg = Release|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection


    The first GUID is actually a GUID that is the unique GUID for the solution itself (I believe). If you have a solution with more than one project, you'll actually see something like the following:



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"
    EndProject
    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "Composite", "..CompositeWPFSourceCALCompositeComposite.csproj", "77138947-1D13-4E22-AEE0-5D0DD046CA34"
    EndProject





    share|improve this answer















    Neither GUID is the same GUID as from AssemblyInfo.cs (that is the GUID for the assembly itself, not tied to Visual Studio but the end product of the build).



    So, for a typical line in the sln file (open the .sln in notepad or editor-of-choice if you wish to see this):



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"


    The second GUID is a unique GUID for the project itself. The solution file uses this to map other settings to that project:



    GlobalSection(ProjectConfigurationPlatforms) = postSolution
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Debug|Any CPU.Build.0 = Debug|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.ActiveCfg = Release|Any CPU
    55A1FD06-FB00-4F8A-9153-C432357F5CAC.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection


    The first GUID is actually a GUID that is the unique GUID for the solution itself (I believe). If you have a solution with more than one project, you'll actually see something like the following:



    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "ConsoleSandbox", "ConsoleSandboxConsoleSandbox.csproj", "55A1FD06-FB00-4F8A-9153-C432357F5CAC"
    EndProject
    Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC") = "Composite", "..CompositeWPFSourceCALCompositeComposite.csproj", "77138947-1D13-4E22-AEE0-5D0DD046CA34"
    EndProject






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 15 '18 at 10:29









    Stephan Bauer

    7,37322853




    7,37322853










    answered Sep 9 '08 at 22:29









    Jason OlsonJason Olson

    3,28821623




    3,28821623












    • any parsing in C# for sln file? It's a pity sln file is not XML format. @JasonOlson

      – Kiquenet
      Dec 3 '13 at 11:35







    • 5





      The first GUID identifies the project type, as (briefly) mentioned here -- msdn.microsoft.com/en-us/library/bb165951(v=vs.90).aspx. Also see mztools.com/Articles/2008/MZ2008017.aspx for a list of project types. (I'm still wondering if there's a special guid for a solution folder ...)

      – yoyo
      Dec 5 '13 at 20:20







    • 1





      Thanks for the link @yoyo. The folder GUID seems to be 2150E333-8FDC-42A3-9474-1A3956D46DE8.

      – Giles
      Sep 16 '16 at 12:06

















    • any parsing in C# for sln file? It's a pity sln file is not XML format. @JasonOlson

      – Kiquenet
      Dec 3 '13 at 11:35







    • 5





      The first GUID identifies the project type, as (briefly) mentioned here -- msdn.microsoft.com/en-us/library/bb165951(v=vs.90).aspx. Also see mztools.com/Articles/2008/MZ2008017.aspx for a list of project types. (I'm still wondering if there's a special guid for a solution folder ...)

      – yoyo
      Dec 5 '13 at 20:20







    • 1





      Thanks for the link @yoyo. The folder GUID seems to be 2150E333-8FDC-42A3-9474-1A3956D46DE8.

      – Giles
      Sep 16 '16 at 12:06
















    any parsing in C# for sln file? It's a pity sln file is not XML format. @JasonOlson

    – Kiquenet
    Dec 3 '13 at 11:35






    any parsing in C# for sln file? It's a pity sln file is not XML format. @JasonOlson

    – Kiquenet
    Dec 3 '13 at 11:35





    5




    5





    The first GUID identifies the project type, as (briefly) mentioned here -- msdn.microsoft.com/en-us/library/bb165951(v=vs.90).aspx. Also see mztools.com/Articles/2008/MZ2008017.aspx for a list of project types. (I'm still wondering if there's a special guid for a solution folder ...)

    – yoyo
    Dec 5 '13 at 20:20






    The first GUID identifies the project type, as (briefly) mentioned here -- msdn.microsoft.com/en-us/library/bb165951(v=vs.90).aspx. Also see mztools.com/Articles/2008/MZ2008017.aspx for a list of project types. (I'm still wondering if there's a special guid for a solution folder ...)

    – yoyo
    Dec 5 '13 at 20:20





    1




    1





    Thanks for the link @yoyo. The folder GUID seems to be 2150E333-8FDC-42A3-9474-1A3956D46DE8.

    – Giles
    Sep 16 '16 at 12:06





    Thanks for the link @yoyo. The folder GUID seems to be 2150E333-8FDC-42A3-9474-1A3956D46DE8.

    – Giles
    Sep 16 '16 at 12:06













    6














    According to MSDN:




    [The Project] statement contains the
    unique project GUID and the project
    type GUID. This information is used by
    the environment to find the project
    file or files belonging to the
    solution, and the VSPackage required
    for each project. The project GUID is
    passed to IVsProjectFactory to load
    the specific VSPackage related to the
    project, then the project is loaded by
    the VSPackage.







    share|improve this answer



























      6














      According to MSDN:




      [The Project] statement contains the
      unique project GUID and the project
      type GUID. This information is used by
      the environment to find the project
      file or files belonging to the
      solution, and the VSPackage required
      for each project. The project GUID is
      passed to IVsProjectFactory to load
      the specific VSPackage related to the
      project, then the project is loaded by
      the VSPackage.







      share|improve this answer

























        6












        6








        6







        According to MSDN:




        [The Project] statement contains the
        unique project GUID and the project
        type GUID. This information is used by
        the environment to find the project
        file or files belonging to the
        solution, and the VSPackage required
        for each project. The project GUID is
        passed to IVsProjectFactory to load
        the specific VSPackage related to the
        project, then the project is loaded by
        the VSPackage.







        share|improve this answer













        According to MSDN:




        [The Project] statement contains the
        unique project GUID and the project
        type GUID. This information is used by
        the environment to find the project
        file or files belonging to the
        solution, and the VSPackage required
        for each project. The project GUID is
        passed to IVsProjectFactory to load
        the specific VSPackage related to the
        project, then the project is loaded by
        the VSPackage.








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 9 '08 at 22:28









        Shog9Shog9

        130k30209228




        130k30209228



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53041%2fguids-in-a-sln-file%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3

            Museum of Modern and Contemporary Art of Trento and Rovereto