Visual Studio 2012 csproj是否向后兼容2010? [英] Is Visual Studio 2012 csproj backward compatible with 2010?

查看:106
本文介绍了Visual Studio 2012 csproj是否向后兼容2010?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是,是否可以安全地使用Visual Studio 2012编辑项目属性,添加和删除解决方案,引用,所有这些都与NET 4.0 Framework相关.

The question is if can I use safely Visual Studio 2012 to edit projects properties, add and remove solutions, references, all related to NET 4.0 Framework.

我记得过去某些文件可能已损坏",而Visual Studio 2010更改了一些Visual Studio 2008 csproj信息(xml文件).

I remember in the past some files might be "corrupted", while Visual Studio 2010 changed some Visual Studio 2008 csproj information (xml file).

如果在VS2012中添加/删除了某些标签,则csproj将与VS2010开发人员不兼容.

If some tags are added/removed in VS2012, then the csproj would be incompatible to VS2010 developers.

如果可以安全地使用此新IDE而又不损坏文件,是否有人知道一些信息? VS2012 csprojs与VS2010是否向后兼容"?

Does anyone have some information if it is safe to use this new IDE without damaging files? Are VS2012 csprojs "backward compatible" with VS2010?

推荐答案

VS2012项目大部分*向后兼容VS2010 SP1 .与所有以前的VS版本一样,这些项目将经历转换/迁移过程,但是此版本对VS2010很友好.您应该能够对项目/引用/代码文件进行更改,然后在VS2010中再次将其打开,而不会出现问题.

VS2012 projects are mostly* backwards compatible with VS2010 SP1. The projects will undergo a conversion/migration process like in all previous VS versions, but this one is friendly towards VS2010. You should be able to make changes to your projects/references/code files and open them again in VS2010 without issues.

我之所以这么说,主要是因为VS2012中有一些新功能可能无法向后兼容.最明显的是,如果将项目升级到.NET 4.5,则它在VS2010中将不再起作用.参见 http://blogs.msdn.com/b/visualstudio/archive/2012/03/28/round-tripping-with-visual-studio-11.aspx 了解有关此方案的更多信息.

I say mostly because there are some features new in VS2012 that may not be backwards compatible. The most obvious, if you upgrade a project to .NET 4.5, it will no longer work in VS2010. See http://blogs.msdn.com/b/visualstudio/archive/2012/03/28/round-tripping-with-visual-studio-11.aspx for more information about this scenario.

这篇关于Visual Studio 2012 csproj是否向后兼容2010?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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