Determining which version of Visual Studio an old C# project was developed










0















I'm asked to make some changes in an old C# ASP.NET Web project developed in Visual Studio. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?










share|improve this question

















  • 1





    For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a

    – Peter B
    Nov 13 '18 at 22:24
















0















I'm asked to make some changes in an old C# ASP.NET Web project developed in Visual Studio. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?










share|improve this question

















  • 1





    For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a

    – Peter B
    Nov 13 '18 at 22:24














0












0








0








I'm asked to make some changes in an old C# ASP.NET Web project developed in Visual Studio. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?










share|improve this question














I'm asked to make some changes in an old C# ASP.NET Web project developed in Visual Studio. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?







c# asp.net visual-studio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 '18 at 22:22









namnam

4,1281451115




4,1281451115







  • 1





    For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a

    – Peter B
    Nov 13 '18 at 22:24













  • 1





    For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a

    – Peter B
    Nov 13 '18 at 22:24








1




1





For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a

– Peter B
Nov 13 '18 at 22:24






For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a

– Peter B
Nov 13 '18 at 22:24













3 Answers
3






active

oldest

votes


















2














Open the .sln file and at the top you will see something like this:



Microsoft Visual Studio Solution File, Format Version 12.00

# Visual Studio 14

VisualStudioVersion = 14.0.25420.1

MinimumVisualStudioVersion = 10.0.40219.1


This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.






share|improve this answer






























    1














    Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.






    share|improve this answer






























      1














      The .sln can sometimes have the information you are looking for.



      For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.



      Microsoft Visual Studio Solution File, Format Version 12.00
      # Visual Studio 15
      VisualStudioVersion = 15.0.27130.2036
      MinimumVisualStudioVersion = 10.0.40219.1
      Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
      EndProject


      The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.



      For the project you may also be able to tell based on the ToolsVersion



      <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">





      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%2f53290413%2fdetermining-which-version-of-visual-studio-an-old-c-sharp-project-was-developed%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        Open the .sln file and at the top you will see something like this:



        Microsoft Visual Studio Solution File, Format Version 12.00

        # Visual Studio 14

        VisualStudioVersion = 14.0.25420.1

        MinimumVisualStudioVersion = 10.0.40219.1


        This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.






        share|improve this answer



























          2














          Open the .sln file and at the top you will see something like this:



          Microsoft Visual Studio Solution File, Format Version 12.00

          # Visual Studio 14

          VisualStudioVersion = 14.0.25420.1

          MinimumVisualStudioVersion = 10.0.40219.1


          This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.






          share|improve this answer

























            2












            2








            2







            Open the .sln file and at the top you will see something like this:



            Microsoft Visual Studio Solution File, Format Version 12.00

            # Visual Studio 14

            VisualStudioVersion = 14.0.25420.1

            MinimumVisualStudioVersion = 10.0.40219.1


            This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.






            share|improve this answer













            Open the .sln file and at the top you will see something like this:



            Microsoft Visual Studio Solution File, Format Version 12.00

            # Visual Studio 14

            VisualStudioVersion = 14.0.25420.1

            MinimumVisualStudioVersion = 10.0.40219.1


            This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 13 '18 at 22:45









            AmanAman

            10327




            10327























                1














                Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.






                share|improve this answer



























                  1














                  Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.






                  share|improve this answer

























                    1












                    1








                    1







                    Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.






                    share|improve this answer













                    Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 13 '18 at 22:26









                    venuvenu

                    63111




                    63111





















                        1














                        The .sln can sometimes have the information you are looking for.



                        For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.



                        Microsoft Visual Studio Solution File, Format Version 12.00
                        # Visual Studio 15
                        VisualStudioVersion = 15.0.27130.2036
                        MinimumVisualStudioVersion = 10.0.40219.1
                        Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
                        EndProject


                        The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.



                        For the project you may also be able to tell based on the ToolsVersion



                        <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">





                        share|improve this answer





























                          1














                          The .sln can sometimes have the information you are looking for.



                          For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.



                          Microsoft Visual Studio Solution File, Format Version 12.00
                          # Visual Studio 15
                          VisualStudioVersion = 15.0.27130.2036
                          MinimumVisualStudioVersion = 10.0.40219.1
                          Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
                          EndProject


                          The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.



                          For the project you may also be able to tell based on the ToolsVersion



                          <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">





                          share|improve this answer



























                            1












                            1








                            1







                            The .sln can sometimes have the information you are looking for.



                            For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.



                            Microsoft Visual Studio Solution File, Format Version 12.00
                            # Visual Studio 15
                            VisualStudioVersion = 15.0.27130.2036
                            MinimumVisualStudioVersion = 10.0.40219.1
                            Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
                            EndProject


                            The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.



                            For the project you may also be able to tell based on the ToolsVersion



                            <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">





                            share|improve this answer















                            The .sln can sometimes have the information you are looking for.



                            For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.



                            Microsoft Visual Studio Solution File, Format Version 12.00
                            # Visual Studio 15
                            VisualStudioVersion = 15.0.27130.2036
                            MinimumVisualStudioVersion = 10.0.40219.1
                            Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
                            EndProject


                            The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.



                            For the project you may also be able to tell based on the ToolsVersion



                            <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Nov 13 '18 at 22:37

























                            answered Nov 13 '18 at 22:31









                            TyCobbTyCobb

                            7,41412244




                            7,41412244



























                                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%2f53290413%2fdetermining-which-version-of-visual-studio-an-old-c-sharp-project-was-developed%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