使用 Visual Studio 2010 打开 Visual Studio 2013 项目 [英] To open a visual studio 2013 project with visual studio 2010

查看:47
本文介绍了使用 Visual Studio 2010 打开 Visual Studio 2013 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用 Visual Studio 2010 打开一个 Visual Studio 2013 项目.这可能吗?谢谢.

I need to open a Visual studio 2013 project with Visual studio 2010. It is possible ? Thanks.

我试过了,但它产生了一个兼容性错误.

I tried but It generate a compatibility error.

我的项目是一个 MVC4 解决方案

my project is a MVC4 solution

非常感谢您的回答

推荐答案

首先,您必须下载并安装适用于 Visual Studio 2010 的 MVC 4.您可以使用此链接 ( https://www.microsoft.com/en-us/download/details.aspx?id=30683 )

1st you have to download and install MVC 4 for Visual Studio 2010. you can download it using this link ( https://www.microsoft.com/en-us/download/details.aspx?id=30683 )

然后在记事本中打开您的解决方案文件.进行这 2 处更改

Then open your solution file in notepad. Make these 2 changes

1) 将格式版本 13.00"替换为格式版本 11.00"(不带引号.)

1) Replace "Format Version 13.00" with "Format Version 11.00" (without quotes.)

2) 将# Visual Studio 2013"​​替换为# Visual Studio 2010"(不带引号.)

2) Replace "# Visual Studio 2013" with "# Visual Studio 2010" (without quotes.)

这将解决您的问题.如果您仍然遇到不兼容的错误,请尝试进行以下更改.

This will solve your problem. If you still get an incompatible error, try following change also.

3) 如果您在 VS2013 项目中选择了 .NET 4.5 作为默认 .NET 版本,并且您的 VS2010 环境不支持该版本.要解决此问题,请在文本编辑器中打开 VS2013 .csproj 文件并将 TargetFrameworkVersion 更改为 4.0(从 4.5 或 4.5.2).然后 VS2010 将愉快地加载编辑过的"解决方案和项目.

3) if you had .NET 4.5 selected as the default .NET version in your VS2013 project and your VS2010 environment does not support that. To fix that, open the VS2013 .csproj file in a text editor and change the TargetFrameworkVersion down to 4.0 (from 4.5 or 4.5.2). VS2010 will then happily load the "edited" solution and projects.

您还必须以类似的方式编辑引用 .NET 4.5 的 app.config 文件,以允许它们在 .NET 4.0 环境中运行.

You'll also have to edit an app.config files that have references to .NET 4.5 in a similar way to allow them to run on a .NET 4.0 environment.

Thatz 为我工作.

Thatz worked for me.

这篇关于使用 Visual Studio 2010 打开 Visual Studio 2013 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆