问题描述
我有一个巨大的Visual Studio 2010解决方案。我使用Visual Studio 2005,所以我想将解决方案转换为所需的版本。基本上,它是一个可移植的C ++代码,所以它应该在Visual Studio 2005上编译。更改* .sln文件中的版本没有帮助,因为* .vcxproj格式与旧的* .vcproj格式完全不同。
手动重新创建解决方案不是一个选项,因为它的大小。也可能有一些非默认的编译器标志,依赖等,我不知道(我不能看看所有这个XML垃圾,我不明白)。
在。
这真的很糟糕,每个专有IDE今天认为它需要创建自己的项目文件格式。
亲爱的IDE开发人员,只需使用Makefile并为其创建一个好的GUI,这样没有Makefile知识的人也可以使用它!在VS6它是至少可能导入/导出Makefile,但今天不再。可以使用nmake自动构建。没有IDE需要安装,只是工具链可以通过一个简单的检查没有安装。
我现在使用CMake。它是免费的,它的跨平台,它在如KDevelop,QtCreator等免费IDE支持得很好。它可以生成Makefile和Visual Studio项目。
所以你只维护一个项目源,CMakeLists.txt文件,并可以使用任何IDE。使用不同版本的Visual Studio或其他专有项目文件格式无痛苦。
这种方式你可以生成或VS项目开发,你可以生成Makefile的命令行生成使用nmake像在古老的岁月。
BTW,在CMakeLists.txt中更容易更改设置,而不是单击通过各种GUI对话框。但这是个人喜好的问题。
I have a huge Visual Studio 2010 solution. I work with Visual Studio 2005, so I want to convert the solution to the desired version. Basically, it's a portable C++ code so it should compile on Visual Studio 2005 too. Changing the version in the *.sln file doesn't help because the *.vcxproj format is completely different from the old *.vcproj format.
Recreating the solution by hand is not an option because of its size. Also there may be some non-default compiler flags, dependencies, etc. that I don't know of (and I can't look through ALL this XML junk that I don't understand).
There is already a related question on How Do I Downgrade a C++ Visual Studio 2008 Project to 2005. However, the utility suggested there supports at most Visual Studio 2008.
Any suggestions?
It really totally sucks, that every proprietary IDE today thinks it needs to create its own project file format."Dear IDE developers, just use Makefiles and create a nice GUI for it so that also people without Makefile knowledge can use it!" In VS6 it was at least possible to import/export Makefiles, but not today anymore. And it was possible to use nmake for automated builds. No IDE needed to be installed, just the toolchain which could be grabbed by a simple checkout without installation.
I use CMake now. It's free, it's cross-platform, it is well supported in free IDEs like KDevelop, QtCreator, etc. It can generate Makefiles and Visual Studio projects.So you maintain only one project source, the CMakeLists.txt file and can work with any IDE. No pain with different versions of Visual Studio or with other proprietary project file formats.This way you can generate or VS projects for developing and you can generate Makefiles for commandline builds using nmake like in the good old days.
BTW, it's much easier to change settings in a CMakeLists.txt than clicking through various GUI dialogs. But this is a matter of personal preferences.
这篇关于如何将解决方案从Visual Studio 2010降级到Visual Studio 2005?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!