Visual Studio 2012 doesn't convert vs2010 solution?

后端 未结 10 816
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 06:44

I opened my vs2010 solution with vs2012 but it didn\'t make any conversion as from 2008 to 2010 was happening. So my solution still remains the same as 10 label on it. when

10条回答
  •  醉酒成梦
    2020-12-03 06:55

    For C++ projects it makes a difference, as the 2012 compiler (VC11) will only be used on projects that are explicitly 2012, not on 2010 projects opened in VS 2012. Some C++11 improvements are available with the VC11 compiler but not with VC10 (see this SO Answer for a summary), including:

    • Range based for-loops
    • New standard library headers (atomic, mutex, thread,...)
    • Smaller standard library container sizes
    • (And more to follow when the Nov 2012 CTP is delivered to VS 2012)

    In order to convert from VS 2010 project to VS2012 there is no need to manually edit the solution file or 'Save As' over the existing project. Instead:

    If you decline the update when first prompted, you can update the project later by opening the Project menu and choosing Update VC++ projects... [at the top of the menu options]

    From MSDN's "How to: Upgrade Visual C++ Projects to Visual Studio 2012"
    (This page was linked from @Joachim's MSDN link, but I wanted to have the answer here on SO since a number of other answers suggested manual workarounds instead of this VS 2012 feature)

提交回复
热议问题