Skip to content

Commit

Permalink
Allowed Community, Enterprise, or Professional VS 2017 versions (#457)
Browse files Browse the repository at this point in the history
Loops over the potential MSBuild.exe paths for all three, and runs with the first one. If one isn't found it complaints.
  • Loading branch information
Josh Goldberg authored and Daniel15 committed Nov 4, 2017
1 parent 1c57246 commit afac9d6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion dev-build.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
@echo off
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" build.proj

for %%s in (
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe"
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe"
) do (
if exist %%s (
echo %%s build.proj
%%s build.proj
goto :done
)
)

:notfound
echo Could not find MSBuild.exe. Make sure Visual Studio 2017 is installed and try again.

:done
pause

0 comments on commit afac9d6

Please sign in to comment.