简体   繁体   English

将解决方案从Visual Studio 2010迁移到2008

[英]Moving a solution from Visual Studio 2010 to 2008

I was asked to build a solution for our client on our server which has 2010 Visual Studio and was not informed that the client has a 2008 Visual Studio on their server. 我被要求在装有2010 Visual Studio的服务器上为我们的客户端构建解决方案,但没有被告知该客户端的服务器上有2008 Visual Studio。 Now I was asked to move my solution into their server and don't have an approval to upgrade them (silly isn't it?). 现在,我被要求将我的解决方案移至他们的服务器中,而没有获得升级它们的批准(很傻吗?)。 Does anyone know of a way to do this? 有人知道这样做的方法吗? I know the other way around is quite simple but this is sort of a downgrade. 我知道相反的方法很简单,但这有点降级。

It's a while ago I had to do this, but I think I only had to change the project file (not a solution-file); 前一阵子我必须这样做,但是我想我只需要更改项目文件(而不是解决方案文件); Open the project files (*.vbproj or *.csproj) and downgrade the value in the attribute ToolsVersion (3.0 to 2.0?). 打开项目文件(* .vbproj或* .csproj),并将属性ToolsVersion中的值降级(3.0到2.0?)。

Or compare two (empty) projectfiles with each other to see the differences between VS2010 and VS2008. 或将两个(空)项目文件相互比较,以查看VS2010和VS2008之间的差异。

Visual Studio has a facility for creating a project from source files. Visual Studio具有从源文件创建项目的功能。 You could remove all of the non-source-code files from a copy of the working project then import those files into another version of Visual Studio to create a new solution. 您可以从工作项目的副本中删除所有非源代码文件,然后将这些文件导入另一个版本的Visual Studio中以创建新的解决方案。 Many versions of Visual Studio have the command menu => File => New => Project From Existing Code . Visual Studio的许多版本都有命令菜单=> File => New => Project from Existing Code That command then shows a series of prompts to set up the new project. 然后,该命令显示了一系列提示来设置新项目。 See this page for more details. 有关更多详细信息,请参见此页面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM