用Visual Studio 2010 打开Visual Studio 2013 (C#专用)

时间:2023-11-24 20:21:08

1.更改.sln

1)将Microsoft Visual Studio Solution File, Format Version 12.00   改成11.00

2)将 # Visual Studio 2013 
VisualStudioVersion = 12.0.21005.1         改成 10.0.40219.1

改后如下:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
VisualStudioVersion = 10.0.40219.1
MinimumVisualStudioVersion = 10.0.40219.1

2.更改.csproj

将Project ToolsVersion="12.0"  改成 “4.0”

改后如下:

Project ToolsVersion="4.0" DefaultTargets="Build"

3.更改APP.CONFIG

将sku=".NETFramework,Version=v4.5" 改成 Version=v4.0

改后如下:

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />