This repository was archived by the owner on Jul 12, 2022. It is now read-only.
File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,26 @@ SETLOCAL
4
4
5
5
SET CACHED_NUGET = %LocalAppData% \NuGet\NuGet.exe
6
6
SET SOLUTION_PATH = %~dp0 src\CodeFormatter.sln
7
- SET BUILD_TOOLS_PATH = " %ProgramFiles(x86)% \MSBuild\14.0\bin\MSBuild.exe"
7
+ SET MSBUILD14_TOOLS_PATH = " %ProgramFiles(x86)% \MSBuild\14.0\bin\MSBuild.exe"
8
+ SET MSBUILD12_TOOLS_PATH = " %ProgramFiles(x86)% \MSBuild\12.0\bin\MSBuild.exe"
9
+ SET BUILD_TOOLS_PATH = %MSBUILD14_TOOLS_PATH%
8
10
9
- IF NOT EXIST %BUILD_TOOLS_PATH % (
10
- echo In order to build or run this tool you need either Visual Studio 2015 or
11
+ IF NOT EXIST %MSBUILD14_TOOLS_PATH % (
12
+ echo In order to run this tool you need either Visual Studio 2015 or
11
13
echo Microsoft Build Tools 2015 tools installed.
12
14
echo .
13
15
echo Visit this page to download either:
14
16
echo .
15
17
echo http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs
16
18
echo .
17
- goto :eof
19
+ echo Attempting to fall back to MSBuild 12 for building only
20
+ echo .
21
+ IF NOT EXIST %MSBUILD12_TOOLS_PATH% (
22
+ echo Could not find MSBuild 12. Please install build tools ^ (See above^ )
23
+ exit /b 1
24
+ ) else (
25
+ set BUILD_TOOLS_PATH = %MSBUILD12_TOOLS_PATH%
26
+ )
18
27
)
19
28
20
29
IF EXIST %CACHED_NUGET% goto restore
@@ -28,4 +37,4 @@ IF EXIST "%~dp0src\packages" goto build
28
37
29
38
:build
30
39
31
- %BUILD_TOOLS_PATH% %SOLUTION_PATH% /p:OutDir=" %~dp0 bin " /nologo /m /v:m /flp:verbosity=normal %*
40
+ %BUILD_TOOLS_PATH% %SOLUTION_PATH% /p:OutDir=" %~dp0 bin" /nologo /m /v:m /flp:verbosity=normal %*
You can’t perform that action at this time.
0 commit comments