Re: Rebuilding from command line /rebuild



It's fairly easy to rebuild a solution file with devenv.exe:

devenv "FullPath\Solution.sln" /rebuild release

However, you need to set the environment variables as found when starting a
new Visual Studio Command Prompt in the ProcessStartInfo. I think it's much
easier to create a .bat file on the fly and start this instead of doing it
all from code.

Michael


"Dyl" <mosdef_underground@xxxxxxxxx> schrieb im Newsbeitrag
news:1134497988.491365.208160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> I am trying to use an executable which when an option is clicked, it
> goes out and rebuilds a .sln file.
>
> I read about devenv and /rebuild, but I am still confused.
>
> Would I run something from a command prompt using a process?
>
> Any help would be appreciated, if you could give an example that would
> help a lot.
>
> Thanks!
>


.



Relevant Pages

  • Opening Explorer, My Computer, etc.
    ... >>When I try to launch My Computer, Windows Explorer, or ... >files off using DOS via the command prompt and rebuild. ...
    (microsoft.public.windowsxp.general)
  • Opening Explorer, My Computer, etc.
    ... >Control Panel all it does is reset the Desktop. ... files off using DOS via the command prompt and rebuild. ...
    (microsoft.public.windowsxp.general)
  • Problem with commandline build "devenv /rebuild"...
    ... so we decided to create .cmd files which get the latest version ... from source safe and then simply rebuild the .sln file with Release config ... devenv /nologo /rebuild Release "%1.sln" ... it brings up an error message "unknown error" with no additional information. ...
    (microsoft.public.vstudio.development)
  • Re: VS 2005 Beta2 command line build
    ... Hmm...looks like through my perl script it seems to wait for ... completion whereas the command prompt it didn't. ... >I am upgrading from VS6/eVC and have a custom auto-build script that I ... I did notice that devenv returns right away and spawns ...
    (microsoft.public.vsnet.general)
  • Re: How to do a build in the background with command prompt
    ... > browse around the code instead of being stuck with un-responsive IDE during ... You can run devenv from a command prompt, ... Just be warned that if you change code during a compile, ...
    (microsoft.public.dotnet.general)

Loading