使用 Visual Studio 2010 和 2008 [英] Working with Visual studio 2010 and 2008

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

问题描述

我正在 Visual Studio 2008 中开发基于桌面的应用程序.该解决方案有 24 个项目.我正在使用 .Net Framework 3.5

我想使用 Visual Studio 2010.但问题是还有其他团队成员也在使用 Visual Studio 2008.

如何使解决方案和项目文件与两个版本兼容??

解决方案

您必须有两个单独的解决方案文件.Visual Studio(任何版本)尝试根据解决方案文件中的版本将任何解决方案文件上转换为下一个版本,例如

VS 2010 的解决方案文件:Microsoft Visual Studio 解决方案文件,格式版本 11.00# Visual Studio 2010VS 2008 的解决方案文件:Microsoft Visual Studio 解决方案文件,格式版本 10.00# Visual Studio 2008VS 2005 的解决方案文件:Microsoft Visual Studio 解决方案文件,格式版本 9.00# Visual Studio 2005

项目文件也是如此,因此您必须拥有每个项目文件的单独版本.每个版本的 Visual Studio 都有其特定的需求.例如.对于 VS 2010 中的 Web 应用程序项目模板,有一些 Web 配置转换文件对早期版本的 VS 毫无意义.

最重要的是可以在 Visual Studio 2008 和 2010 中维护不同的解决方案和项目文件.Visual Studio 2005 是不可能的,因为没有多目标支持并且您使用的是 Fwk 的 3.5.

I am developing a desktop based application in Visual Studio 2008. the solution has 24 projects. I am using .Net Framework 3.5

I want to Use Visual studio 2010. but problem is this that there are other team members also which are using Visual studio 2008.

How can i make solution and project files compatible with both versions??

解决方案

You must have two separate solution files. Visual Studio (any version) tries to upconvert any solution file to the next version based on the version inside the solution file e.g.

Solution File for VS 2010:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

Solution File for VS 2008:

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008

Solution File for VS 2005:

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005

The same goes with project files, so you will have to have separate versions of each project file. Each version of Visual Studio have their specific needs. E.g. for a Web Application Project Template in VS 2010 there are web config transform files that make no sense to earlier versions of VS.

Bottom line is it is possible to maintain different solution and project files in Visual Studio 2008 and 2010. Visual Studio 2005 is out of the question since there is no multi-targeting support and you are using 3.5 of the Fwk.

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

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