converting sln/vcproj to dsw/dsp ?
-
Is there an easy (automatic) way to convert "Solutions" from Visual Studio.Net beta2 back to "Workspaces" from VS6.0? Or is there an other way to easily share a project between both VS versions? Juergen
-
Is there an easy (automatic) way to convert "Solutions" from Visual Studio.Net beta2 back to "Workspaces" from VS6.0? Or is there an other way to easily share a project between both VS versions? Juergen
I only found a way to convert from .dsp to .vcproj in the documentation. It is a script as follows:
// when running this at the command line,
// call it with CScript so you don't get UI.
// example: CScript convert.js e:\yourprojects\old.dsp
//// or set default script engine to the command line doing this first
// example: CScript //H:CScript// Once you set the environment, run the .js file like a .bat file
// To have a batch file loop through all the .dsp files
// in a directory, write a batch file that looked like this
// (Windows NT 4 or Windows 2000 only)
// CScript //H:CScript //Nologo
// for /R %%i in (*.dsp) do convert.js %%i >> .\Convert.logvar vcProj = new ActiveXObject("VisualStudio.VCProjectEngine.7");
var objFile = new ActiveXObject("Scripting.FileSystemObject");
var objArgs = WScript.Arguments;// check the arguments to be sure it's right
if (objArgs.Count() < 1)
{
WScript.Echo("VC6 or 5 DSP Project File Conversion");
WScript.Echo("Opens specified .dsp and converts to VC7 Format.");
WScript.Echo("Will create project file with .vcproj extension");
WScript.Echo("\n\tusage: <(full path)\project.dsp>");
WScript.Quit(1);
}WScript.Echo("\nConverting: "+ objArgs.Item(0));
// If there is a file name of the .vcproj extension, do not convert
vcProject = vcProj.LoadProject(objArgs.Item(0));
if (!objFile.FileExists(vcProject.ProjectFile))
{
// call the project engine to save this off.
// when no name is shown, it will create one with the .vcproj name
vcProject.Save("");
WScript.Echo("New Project Name: "+vcProject.ProjectFile+"\n");
}
else
{
WScript.Echo("ERROR!: "+vcProject.ProjectFile+" already exists!\n");
}Unfortunately, I don't know a way back tro the .dsp :( Regards, Thomas
I am a signature virus! Help me spread and copy me to your sig!