Wednesday, September 29, 2010

Friday, September 10, 2010

VS2003 Platform Toolset, initial release

VS2010 offers a great possibility to use its modern environment for compiling older projects. Microsoft provided Platform Toolset for VS2008, support files for VS2005 can be found on the Internet, but, due to many internal problems, there's nothing that would work for VS2003. This project tries to change this...



You can find the first version here: download (rel1)


For installation, do the following:
  1. Copy v71 directory into C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets or the equivalent.
  2. Copy other files to your C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin dir (or the equivalent).
  3. Run ConvertResponse_install.bat from the command line in the directory from the step 2.

To do the uninstall, do previous steps in reverse, but use ConvertResponse_uninstall.bat.


Use it like this:
  1. Load your VS2003 project into the VS2010 (it will be converted to .vcxproj).
  2. Change Project Properties\Configuration Properties\General\Platform Toolset to v71.
  3. Compile!
  4. If you'll encounter problems, most probably the problem is that VS2010 sets some property which VS2003 doesn't understand. For such cases, you might want to edit ConvertResponse.ini file which contains parameter replacement rules (with help present in the file itself).


Beware:
  1. Although the binaries should be the same as if generated on VS2003, VS2010 sets some options differently by default. For example, initial values for forscope and wchar_t language options are different compared to VS2003's default ones. I've handled this in the ConvertResponse.ini file, but, if you might check this if you'll encounter problems...
  2. Since VS2010 uses .vcxproj, you will still need to use VS2003 to alter project settings. Since you will need VS2003, you might consider naming .sln file for VS2010 differently.


For all questions, suggestions or if you'd like to share your version of ConvertResponse.ini, write to me. Please put some sane subject.

This utility is free of charge, but, if you extraordinarily love it and if you can afford, you can donate some funds. Tnx!