Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. converting sln/vcproj to dsw/dsp ?

converting sln/vcproj to dsw/dsp ?

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studioquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Juergen
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • J 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

      T Offline
      T Offline
      Thomas Freudenberg
      wrote on last edited by
      #2

      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.log

      var 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!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups