Friday, March 19, 2010

Visual Studio Project Converter



Change to vspc folder:
Run command: vspc ["from version" "to version" "fileName" [/option --longOption]] 
e.g: vspc VS2008 VS2005 D:\MyPrj\TestPrj.sln /b /r
 
=> Convert "TestPrj" solution and "TestPrj" project files from VS2008 downto VS2005 with backup and importing references options.
 
More details:
 
Visual Studio .NET solutions converter v.0.9.3
Totally Free(tf:-) by Stoyan Damov. Modified by Nikolay Samofatov

Usage: vspc ["from version" "to version" "fileName" [/option --longOption]]
and : One of the following - VS2002, VS2003, VS2005 or VS2008.

Note that conversion of .NET projects for version 2005 and 2008 is currently not supported. Native C++ projects should convert just fine between any of the above versions.

: The full solution/project file path (all projects in the solution are converted automatically, and I don't think you'll want a separate option on the command line to avoid that:)

LANGUAGE-INDEPENDENT OPTIONS

/q, --quiet Do not display anything on the console

/b, --backup Backup each converted file

C#/VB.NET-SPECIFIC OPTIONS

/h, --hintpaths The framework version of the project references (in HintPath) is converted to the default one for the VS project (i.e. 2002 gets version v1.0.3705, 2003 gets v1.1.4322)

/w, --webprojects Convert the web applications projects, found in the solution file;

VC++.NET-SPECIFIC OPTIONS

/p, --relativepaths Fix the "RelativePath" attribute to prepend ".\"

/r, --references Import references, i.e. convert , added by "Add Reference" to include the appropriate .DLLs in stdafx.h, i.e. "#using "... (if the option is missing, you'll be able to open the project, but will have to add the #using clauses by hand)

/c, --nochkclr Remove the "nochkclr.obj" dependency in the linker settings from 2002 projects, add it to 2003 projects (use the option or your project won't compile, unless you have that file)

VC++.NET NOTE:

Visual C++ 2002 (DUH!) DOES NOT support ".resx" files, and refuses to load projects with such files, so I remove them from the project files



No comments:

Post a Comment

Labels