[mysysgit] Run devenv.exe without launching IDE

697 views
Skip to first unread message

Samir Aguiar

unread,
Dec 22, 2015, 12:00:22 PM12/22/15
to git-for-windows
Hi,

From Windows command prompt I can run `devenv.exe mysolution.sln /Build` and build a Visual Studio solution directly from the command line. However, when doing the same from mysysgit the IDE is opened with the solution loaded. Is it possible to mimic the command prompt behavior (i.e. only build and don't open the IDE)?

I have also tried running:

`devenv.exe "mysolution.sln /Build"`
`cmd.exe "/C devenv.exe mysolution.sln /Build"`
`cmd.exe "/C bat_that_calls_devenv.bat"` <- this doesn't open the IDE but prints nothing

Any advices?

Thanks in advance.

Samir Aguiar

Johannes Schindelin

unread,
Dec 23, 2015, 3:45:37 AM12/23/15
to Samir Aguiar, git-for-windows
Hi Samir,

On Mon, 21 Dec 2015, Samir Aguiar wrote:

> From Windows command prompt I can run `devenv.exe mysolution.sln /Build`
> and build a Visual Studio solution directly from the command line. However,
> when doing the same from mysysgit the IDE is opened with the solution
> loaded.

First of all: you are not talking about mysysgit, but about Git for
Windows. Please try to be as precise as possible in your bug reports.

As to your problem, it is mentioned in the release notes' known
issues:
https://github.com/git-for-windows/build-extra/blob/master/installer/ReleaseNotes.md#known-issues)

> * If you specify command-line options starting with a slash,
> POSIX-to-Windows path conversion will kick in converting e.g.
> "`/usr/bin/bash.exe`" to "`C:\Program Files\Git\usr\bin\bash.exe`". When
> that is not desired -- e.g.
> "`--upload-pack=/opt/git/bin/git-upload-pack`" or "`-L/regex/`" -- you
> need to set the environment variable `MSYS_NO_PATHCONV` temporarily,
> like so:
>
> > `MSYS_NO_PATHCONV=1 git blame -L/pathconv/ msys2_path_conv.cc`
>
> Alternatively, you can double the first slash to avoid POSIX-to-Windows
> path conversion.

Ciao,
Johannes
Reply all
Reply to author
Forward
0 new messages