forked from dotnet/corefxlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a wrapper script for the CI to use
ILDasm and ILAsm must be invoked from a VS Developer Command Prompt, or they will silently fail. CI will call build.cmd in order to set the appropriate environment before executing the build. Locally, you must either call build.cmd yourself, or use a developer command prompt. build.ps1 is not intended to be called directly, but can be if you ensure that the correct environment variables are set (i.e. from a VS Developer Command Prompt). Even then, you should just call build.cmd to be safe.
- Loading branch information
Showing
4 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo off | ||
setlocal | ||
|
||
:: Invoke VS Developer Command Prompt batch file. | ||
:: This sets up some environment variables needed to use ILDasm and ILAsm. | ||
if not defined VisualStudioVersion ( | ||
if defined VS140COMNTOOLS ( | ||
call "%VS140COMNTOOLS%\VsDevCmd.bat" | ||
goto :Build | ||
) | ||
|
||
echo Error: cibuild.cmd requires Visual Studio 2015. | ||
exit /b 1 | ||
) | ||
|
||
:Build | ||
powershell -NoProfile %~dp0scripts\build.ps1 %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.