Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade solution from Visual Studio 2010 to Visual Studio 2005?

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?

like image 771
Yakov Galka Avatar asked Jan 04 '11 18:01

Yakov Galka


People also ask

How do I revert to a previous version of Visual Studio?

Right-click your project or project suite in the Project Explorer and then click Source Control > View History. Click View History on the Source Control toolbar (if the toolbar is hidden, right-click the toolbar area and select Source Control). In the History dialog, select a changeset you want to revert to.

Are Visual Studio 2022 solutions backwards compatible?

You can install and use Visual Studio 2022 alongside previous versions of Visual Studio, including Visual Studio 2019, Visual Studio 2017, Visual Studio 2015, Visual Studio 2013, and Visual Studio 2012.

How do I move a project in Visual Studio?

Right-click the Syncfusion ASP.NET Application from Solution Explorer and select Syncfusion Web (Essential JS 1). Choose Migrate the Essential JS 1 Project to Another version… The Project Migration window appears. You can choose the required Essential Studio version that is installed in the machine.


2 Answers

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.

like image 130
gergap Avatar answered Sep 19 '22 22:09

gergap


In my work made a utility which utilized the EnvDTE.dll and scanned a vcproj-file and optionally all vcproj-files within a sln-file. It compared all settings with a "template" and would issue a warning or optionally update the setting to correct values. We used this utility so that settings would be verified to be correct and consistent throughout all projects. I haven't updated the utility to 2010 yet due to other priorities.

EnvDTE hasn't changed much from Visual Studio 2008 to Visual Studio 2010. Perhaps it is possible to create a simple utility which opens the vcxproj-file using DTE100 and saves it using DTE90, or earlier.

like image 22
dalle Avatar answered Sep 18 '22 22:09

dalle