Visual Studio 2012 项目不会在 2010 年打开 [英] Visual Studio 2012 project won't open in 2010
问题描述
我在 Visual Studio 2012 和我所在的大学使用 2010 中为作业创建了一个游戏,但它无法打开!它提到了一些关于 NET Framework 4.5 的内容.如何转换我的项目,使其在 2010 年开放?
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 I convert my project so it will open in 2010?
推荐答案
需要三步:
第一步
在文本编辑器中打开解决方案文件 (.sln) 并进行更改
Open solution file (.sln) in a text editor and change
Microsoft Visual Studio Solution File, Format Version 12.00
到
Microsoft Visual Studio Solution File, Format Version 11.00
第 2 步
在文本编辑器中打开应用程序配置文件 (App.config) 并进行更改
Open application configuration file (App.config) in a text editor and change
sku=".NETFramework,Version=v4.5"
到
sku=".NETFramework,Version=v4.0"
步骤 3
在文本编辑器中打开项目文件(对于 C# 语言 .csproj)并进行更改
Open project file (for C# language .csproj) in a text editor and change
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
到
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
现在在 VS 2010 中享受您的项目吧!
Now enjoy your project in VS 2010 !
这篇关于Visual Studio 2012 项目不会在 2010 年打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!