CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Aug 2019
    Posts
    72

    2017 project sln

    I have two 2012 and 2017 visual studios on my PC. On .sln that is created by 2017 , when I movie the mouse over it, it shows 2012.why?.
    Last edited by @EE@; October 18th, 2020 at 06:37 PM.

  2. #2
    Join Date
    Aug 2019
    Posts
    72

    Re: 2017 project sln

    no reply is applicable?.

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: 2017 project sln

    Quote Originally Posted by @EE@ View Post
    I have two 2012 and 2017 visual studios on my PC. On .sln that is created by 2017 , when I movie the mouse over it, it shows 2012.why?.
    Just open this .sln file with notepad.exe and look at the first three lines.
    Victor Nijegorodov

  4. #4
    Join Date
    Aug 2019
    Posts
    72

    Re: 2017 project sln

    opened the sln file with a text editor. Unfortunately do not have the exact text with me. There was a 2012 format info in the 1st and 2nd lines , the third line seemingly was license info. deleted the .sln file, with visual studio 2017 opened the project file and saved the project sln file. That created .sln file with 2017 format info. Is that right way to fix it??.What possibly could have happened to begin with??

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: 2017 project sln

    Quote Originally Posted by @EE@ View Post
    opened the sln file with a text editor. Unfortunately do not have the exact text with me. ...
    It is from my old 2010 solution:
    Microsoft Visual Studio Solution File, Format Version 11.00
    # Visual Studio 2010
    It is from 2013:
    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 2013
    VisualStudioVersion = 12.0.21005.1
    MinimumVisualStudioVersion = 10.0.40219.1
    From 2015:
    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 15
    VisualStudioVersion = 15.0.28307.852
    MinimumVisualStudioVersion = 10.0.40219.1
    The versions 2013, 2015 have additional info like VisualStudioVersion and MinimumVisualStudioVersion.

    And yes, deleting the old sln file with the following recreation the solution is a possible way.
    Or you can let the VS convert the solution.
    Victor Nijegorodov

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: 2015 project sln

    Make a copy of your solution and project files as a backup if simething goes wrong.
    Create a new 2017 Visual Studio sln and project as the same type as the original sln.
    Edit your solution and copy the first few lines from the new solution into your solution.
    Last edited by Arjay; October 22nd, 2020 at 05:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured