Skip to content

Commit

Permalink
Revert "msbuild.exe の検出で %ProgramW6432% を外す"
Browse files Browse the repository at this point in the history
This reverts commit 2287d4c.
  • Loading branch information
m-tmatma committed Sep 4, 2018
1 parent 2287d4c commit 0d32d1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/msbuild/find-msbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,30 @@
set CMD_MSBUILD=
set PATH_MSBUILD_1=
set PATH_MSBUILD_2=
set PATH_MSBUILD_3=

if not "%ProgramFiles%" == "" set "PATH_MSBUILD_1=%ProgramFiles%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
if not "%ProgramFiles(x86)%" == "" set "PATH_MSBUILD_2=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
if not "%ProgramW6432%" == "" set "PATH_MSBUILD_3=%ProgramW6432%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"

set RESULT_PATH_MSBUILD_1=--
set RESULT_PATH_MSBUILD_2=--
set RESULT_PATH_MSBUILD_3=--

if exist "%PATH_MSBUILD_1%" (
set RESULT_PATH_MSBUILD_1=OK
set "CMD_MSBUILD=%PATH_MSBUILD_1%"
) else if exist "%PATH_MSBUILD_2%" (
set RESULT_PATH_MSBUILD_2=OK
set "CMD_MSBUILD=%PATH_MSBUILD_2%"
) else if exist "%PATH_MSBUILD_3%" (
set RESULT_PATH_MSBUILD_3=OK
set "CMD_MSBUILD=%PATH_MSBUILD_3%"
)

@echo %RESULT_PATH_MSBUILD_1% %PATH_MSBUILD_1%
@echo %RESULT_PATH_MSBUILD_2% %PATH_MSBUILD_2%
@echo %RESULT_PATH_MSBUILD_3% %PATH_MSBUILD_3%
@echo.
@echo CMD_MSBUILD "%CMD_MSBUILD%"
@echo.

0 comments on commit 0d32d1a

Please sign in to comment.