Running Visual Studio 2005, 2008, and 2010 on same

2020-03-03 07:52发布

I have around 50 projects in Visual Studio 2005 that I am building a new development machine for and I'd like to slowly move those projects to VS 2008 but also have 2010 available for select new projects.

Can this work? Are there any gotchas for this sort of setup? Any general advice for running multiple versions of Visual Studio on the same system would be greatly appreciated. Specifically related to managing a controlled migration of projects to new versions but being able to selectively keep some on old versions.

8条回答
Ridiculous、
2楼-- · 2020-03-03 08:03

I have VC6, VB6, VS 2008, and VS2010 RC installed on Windows Vista. I cannot double click on the VC6 dsp files without VS2010 opening and asking to perform the conversion. The 2008 C# projects open in 2008 as long as I use the solution file. The 2008 project file opens in 2010 instead of 2008 even though the version selector is the default program. Most of the time I try to remember to open the desired version of Visual Studio and then open the project.

You can mitigate some of these issues by changing the default program associations in the control panel or the registry.

Update: This setup works on Windows 7 x64, with the addition of VS2013.

查看更多
一夜七次
3楼-- · 2020-03-03 08:12

I have VS2005 & VS2008 running without any issues. I have had problems when working with betas, express editions & am assuming you don't have them.

I would say refrain from making too many changes to the setup of these editions, it should be fine.

查看更多
我命由我不由天
4楼-- · 2020-03-03 08:14

Yes it can work. I'm not sure if you have to install them in a particular order... but install them in order of the versions... 2005, 2008, 2010. Should be good to go.

查看更多
劳资没心,怎么记你
5楼-- · 2020-03-03 08:19

Make sure when you open up the 2005 files you're doing it in 2005. To open them in another would require a conversion which would render them incompatible with the older compiler set-up. To aid this, structure whatever workspace you're using into 2005, 2008, and 2010 so as to minimize accidental chance of this.

Second, when you double click to open the projects, it will invariably attempt to open them with 2010. You'll have to start with VS#### instead of the solution/project unless you're in the 2010 workspace.

查看更多
戒情不戒烟
6楼-- · 2020-03-03 08:20

I also had the same doubt. I work at my company which is still on VS 2008 and I want to personally use the VS 2010 and not risk the 2008. I installed the 2010 and it worked fine with the 2008. Just make sure you note the projects that are in 2005 and open them with the same accordingly.

查看更多
Rolldiameter
7楼-- · 2020-03-03 08:20

The reason why it works is simple: if you open your solution file in Notepad, you'll see which version of VS is related to your project.

查看更多
登录 后发表回答