Visual Studio 2012 project won't open in 2010

前端 未结 7 1348
不思量自难忘°
不思量自难忘° 2020-12-07 23:11

I\'ve created a game for an assignment in Visual Studio 2012 and the university I\'m at uses 2010 and it won\'t open! It mentions something about NET Framework 4.5. How can

7条回答
  •  半阙折子戏
    2020-12-07 23:37

    You may only need to open the project in Visual Studio 2012, and go to the project's properties page.

    On the Application tab, locate the Target Framework setting, and change it to .Net Framework 4.

    After that, you should be able to open it in Visual Studio 2010.

    Also see Converting VS2012 Solution to VS2010, but so far I haven't had to do any conversions on VS2012-created projects to open them ins VS2010 - but YMMV.

    [EDIT]

    I just tested this again (to be sure) by creating a .Net 4.5 project in VS2012, and verified that I couldn't open it in VS2010. Then I opened it in VS2012 again and changed the framework version to .Net 4.0. After that I could open it in VS2010.

    Note that I didn't have to make any other changes. However, this is on a computer with VS2010 and VS2012 installed, so it's possible that installing VS2012 might do something with VS2010 to make it work...

提交回复
热议问题