locked
Using devenv command line

    Question

  • Hi,

    I have a solution which holds 304 projects of c# and c++. That solution is ordered by dependencies carefully.

    I want the solution to take the projects it holds automatically from the VSS through command line (when nothing is on the disk) - similar to the procedure when I open the sln itself and it asks me if to get latest version from source safe.

    1. How can I do it ?

    2. Is there any option to build a project using devenv.exe and to specify its file version through command line ? (like we have in msbuild).

    I tried to find it in documentation and couldn't.

    Need you help.

    thanks, Ido

    Sunday, April 18, 2010 6:58 AM

Answers

  • Hi Ido,

    You can use SourceSafe command line client to retrieve files of specified version and then use devenv.exe to build it.

    http://msdn.microsoft.com/en-us/library/661w6e3d(v=VS.80).aspx

    http://msdn.microsoft.com/en-us/library/b20w810z(VS.80).aspx

    Regards,

     

    ----------------------------

    Kevin Gao, MCSD MCDBA
    www.kevingao.net

    Monday, April 19, 2010 10:48 PM
  • Hi,

     

    My first question was about how to take all the sources that are connected to the solution using command line (devenv.exe) . I am familiar with the procedure of opening the sln file to take all the sources it holds.

    My second question : is there any option to build a project using devenv.exe and to specify its file version through command line ? (like we have in msbuild).

    any ideas ?

    thanks, Ido

    Ido,

     

    You would use a batch / shell script for the VSS command line to GET the files.  Next you would need something to write to AssemblyInfo.cs or a *.rc file to write in build versions assuming you increment the version for each build.  Finally, you would shell out to devenv to create binaries.  (See "devenv /?" for your particular version of Visual Studio's command prompt.

    Note, if you are looking for an automated build tool or continuous integration, besides MSBuild, you could look at other BUILD tools as well as things like CruiseControl.NET and/or NAnt .


    Jeff Clausius - SourceGear

    Looking to leverage VSS on Windows 7 or VS 2010?  Have a look at SourceOffSite 5 -http://www.sourcegear.com/sos

    Tuesday, April 20, 2010 2:03 PM

All replies

  • Ido,

     

    Normally you would want to open everything through a File->Source Control -> Open from Source Control using the VSS client from within Visual Studio.  Then browse for the solution file.  It will come down to disk.  Next, it will download all projects and their dependencies from VSS.  Once the files are on disk, you would just open the *.sln out of the working folder from disk.

    HTH


    Jeff Clausius - SourceGear

    Looking to leverage VSS on Windows 7 or VS 2010?  Have a look at SourceOffSite 5 -http://www.sourcegear.com/sos

    Monday, April 19, 2010 2:49 PM
  • Hi,

     

    Thanks for the reply.

    My first question was about how to take all the sources that are connected to the solution using command line (devenv.exe) . I am familiar with the procedure of opening the sln file to take all the sources it holds.

    My second question : is there any option to build a project using devenv.exe and to specify its file version through command line ? (like we have in msbuild).

     

    any ideas ?

    thanks, Ido

    Monday, April 19, 2010 8:19 PM
  • Hi Ido,

    You can use SourceSafe command line client to retrieve files of specified version and then use devenv.exe to build it.

    http://msdn.microsoft.com/en-us/library/661w6e3d(v=VS.80).aspx

    http://msdn.microsoft.com/en-us/library/b20w810z(VS.80).aspx

    Regards,

     

    ----------------------------

    Kevin Gao, MCSD MCDBA
    www.kevingao.net

    Monday, April 19, 2010 10:48 PM
  • Hi,

     

    My first question was about how to take all the sources that are connected to the solution using command line (devenv.exe) . I am familiar with the procedure of opening the sln file to take all the sources it holds.

    My second question : is there any option to build a project using devenv.exe and to specify its file version through command line ? (like we have in msbuild).

    any ideas ?

    thanks, Ido

    Ido,

     

    You would use a batch / shell script for the VSS command line to GET the files.  Next you would need something to write to AssemblyInfo.cs or a *.rc file to write in build versions assuming you increment the version for each build.  Finally, you would shell out to devenv to create binaries.  (See "devenv /?" for your particular version of Visual Studio's command prompt.

    Note, if you are looking for an automated build tool or continuous integration, besides MSBuild, you could look at other BUILD tools as well as things like CruiseControl.NET and/or NAnt .


    Jeff Clausius - SourceGear

    Looking to leverage VSS on Windows 7 or VS 2010?  Have a look at SourceOffSite 5 -http://www.sourcegear.com/sos

    Tuesday, April 20, 2010 2:03 PM