forked from dotnet/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
28 lines (22 loc) · 742 Bytes
/
build.cmd
File metadata and controls
28 lines (22 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
setlocal enabledelayedexpansion
where /q msbuild
if "%ERRORLEVEL%" == "0" (
goto :SkipDeveloperSetup
)
set DeveloperCommandPrompt=%VS150COMNTOOLS%\VsDevCmd.bat
if not exist "%DeveloperCommandPrompt%" (
echo In order to build this repository, you either need 'msbuild' on the path or Visual Studio 2015 installed.
echo.
echo Visit this page to download:
echo.
echo https://go.microsoft.com/fwlink/?LinkId=691978^&clcid=0x409
exit /b 1
)
call "%DeveloperCommandPrompt%" || goto :BuildFailed
:SkipDeveloperSetup
powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "& \"%~dp0build.ps1\" %*; exit $LastExitCode;"
exit /b %ERRORLEVEL%
:BuildFailed
echo Build failed with ERRORLEVEL %ERRORLEVEL%
exit /b 1