Use find_my_visual_studio to find msbuild (#43)

This commit is contained in:
Fi 2018-10-07 09:49:08 +01:00 committed by GitHub
parent dab43de6fa
commit 7bac826c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

BIN
find_my_visual_studio.exe Normal file

Binary file not shown.

View File

@ -1,10 +1,16 @@
@echo off
pushd %~dp0
call create_projects
echo building...
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\15.0\\Bin\\msbuild" /property:GenerateFullPaths=true /t:build premake\doghook.sln /p:Configuration=Debug /verbosity:minimal
for /F "tokens=*" %%a in ('find_my_visual_studio.exe msbuild_exe') do set msbuild_folder=%%a
echo msbuild is located at %msbuild_folder%
"%msbuild_folder%\\msbuild" /property:GenerateFullPaths=true /t:build premake\workspace.sln /p:Configuration=Debug /verbosity:minimal
echo done.

View File

@ -1,10 +1,13 @@
@echo off
pushd %~dp0
call create_projects
echo Building RELEASE...
for /F "tokens=*" %%a in ('find_my_visual_studio.exe msbuild_exe') do set msbuild_folder=%%a
echo msbuild is located at %msbuild_folder%
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\15.0\\Bin\\msbuild" /property:GenerateFullPaths=true /t:build premake\doghook.sln /p:Configuration=Release /verbosity:minimal
"%msbuild_folder%\\msbuild" /property:GenerateFullPaths=true /t:build premake\workspace.sln /p:Configuration=Release /verbosity:minimal
echo done.