如何阻止Visual Studio自动升级项目?

时间:2022-05-17 22:54:14

I'd like to give VS2k10 a shot, but I'm in a VS2k8 environment. I compared the upgraded project files in VS2k10 and the only difference was the updated version number - how can I stop VS from doing this?

我想给VS2k10一个镜头,但我在VS2k8环境中。我比较了VS2k10中升级的项目文件,唯一的区别是更新的版本号 - 我怎么能阻止VS这样做?

3 个解决方案

#1


Probably the only way to open the VS 2008 projects safely in VS 2010 will be to make a copy and open the copy in VS 2010. In my experience, it's impossible to revert back once you have opened a specific project in a later version of VS unless you feel like changing the version number in the project files.

在VS 2010中安全打开VS 2008项目的唯一方法可能是在VS 2010中制作副本并打开副本。根据我的经验,一旦在更高版本的VS中打开特定项目,就无法恢复原状。除非您想更改项目文件中的版本号。

This was true with the 2003 to 2005 switch, and also with the 2005 to 2008 switch.

2003至2005年的转换以及2005年至2008年的转换也是如此。

#2


It also does this for some 2K8 SP1 in some cases IIRC. How about just not checking in csproj files from 2k8 - you never know when you're going to hit a more complex case where you are actually hitting something 2kA specific, and by first making sure everything still works in 2k8 you'll prevent team confusion.

在某些情况下,对于某些2K8 SP1,它也会这样做。如何不检查2k8的csproj文件 - 你永远不知道什么时候你会遇到一个更复杂的情况,你实际上是在打2kA特定的东西,并且首先确保一切仍然在2k8工作,你将防止团队混淆。

#3


You can't stop VS from trying to upgrade the project. When VS detects that the project file is not high enough for it's version, it will force an upgrade. If you cancel it will then not allow you to open the project.

您无法阻止VS尝试升级项目。当VS检测到项目文件不够高时,它会强制升级。如果取消它,则不允许您打开项目。

I find the best approach here is to use two project files; 1 for each version of visual studio. I usually just copy all of the project files, open one and rebuild the solution.

我发现这里最好的方法是使用两个项目文件;每个版本的visual studio都有1个。我通常只复制所有项目文件,打开一个并重建解决方案。

#1


Probably the only way to open the VS 2008 projects safely in VS 2010 will be to make a copy and open the copy in VS 2010. In my experience, it's impossible to revert back once you have opened a specific project in a later version of VS unless you feel like changing the version number in the project files.

在VS 2010中安全打开VS 2008项目的唯一方法可能是在VS 2010中制作副本并打开副本。根据我的经验,一旦在更高版本的VS中打开特定项目,就无法恢复原状。除非您想更改项目文件中的版本号。

This was true with the 2003 to 2005 switch, and also with the 2005 to 2008 switch.

2003至2005年的转换以及2005年至2008年的转换也是如此。

#2


It also does this for some 2K8 SP1 in some cases IIRC. How about just not checking in csproj files from 2k8 - you never know when you're going to hit a more complex case where you are actually hitting something 2kA specific, and by first making sure everything still works in 2k8 you'll prevent team confusion.

在某些情况下,对于某些2K8 SP1,它也会这样做。如何不检查2k8的csproj文件 - 你永远不知道什么时候你会遇到一个更复杂的情况,你实际上是在打2kA特定的东西,并且首先确保一切仍然在2k8工作,你将防止团队混淆。

#3


You can't stop VS from trying to upgrade the project. When VS detects that the project file is not high enough for it's version, it will force an upgrade. If you cancel it will then not allow you to open the project.

您无法阻止VS尝试升级项目。当VS检测到项目文件不够高时,它会强制升级。如果取消它,则不允许您打开项目。

I find the best approach here is to use two project files; 1 for each version of visual studio. I usually just copy all of the project files, open one and rebuild the solution.

我发现这里最好的方法是使用两个项目文件;每个版本的visual studio都有1个。我通常只复制所有项目文件,打开一个并重建解决方案。