将visual studio解决方案文件从2013更改为2010

时间:2013-12-05 10:31:58

标签: visual-studio-2010 visual-studio-2013

我有一个项目是我在Visual Studio 2013出现之前在Visual Studio 2010中制作的。

在Visual Studio 2013推出后,我卸载了Visual Studio 2010并在Visual Studio 2013中打开了该项目。

我发现在Visual Studio 2013中,它不支持只需点击几下即可创建安装MSI文件,因此我决定在我的计算机上再次安装Visual Studio 2010。

然后我在Visual Studio 2010中打开了项目,但是一旦我用VS2010打开文件,就会出现错误,因为该项目来自较新版本的visual studio,因此无法打开。

我该如何解决这个问题?感谢

2 个答案:

答案 0 :(得分:3)

问题是在VS2012之后它不支持MSI文件,因此它会给你不支持的错误..

制作设置文件的替代方法是使用Top shelf,它提供了所需的相同功能,因此实现它并删除安装文件,然后它就可以在VS2013上轻松运行。

http://topshelf-project.com/

https://github.com/Topshelf/Topshelf

AND FOR UR QUERY: -

Just open the solution in a text editor in the second line you can find

Microsoft Visual Studio Solution File, Format Version 12.00

change the version to 11.00 and save it.

Try to open the solution and it works.

答案 1 :(得分:0)

创建新的visual studio 2010解决方案并手动添加文件/项目。 还可以使用版本控制系统(例如svn)来防止将来再次发生这种情况。