diff options
author | Tanner Gooding <tagoo@outlook.com> | 2019-02-15 09:20:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 09:20:37 -0800 |
commit | cd9831cd00408db60364f367756de296852467ae (patch) | |
tree | 523a1fb82af4dc8aecf18eb21cd705e979d05e9b /dotnet.cmd | |
parent | bae641f469bebb39b6043071fa55e1fa032bd355 (diff) | |
download | coreclr-cd9831cd00408db60364f367756de296852467ae.tar.gz coreclr-cd9831cd00408db60364f367756de296852467ae.tar.bz2 coreclr-cd9831cd00408db60364f367756de296852467ae.zip |
Manually update the dependencies.props and move S.P.Corelib to use LangVersion=8.0 (#22452)
* Update BuildTools to preview1-03713-01 (master)
* Updating CoreCLR to use LangVersion=8.0
* Moving the Windows scripts to default to `dotnet msbuild` for managed components
* Setting UseSharedCompilation=true
* Changing some additional callsites that were using msbuild to use dotnet msbuild
* Revert packages.builds to use Desktop msbuild on Windows
* Fixing runtest.cmd to always set DotNetCli
Diffstat (limited to 'dotnet.cmd')
-rw-r--r-- | dotnet.cmd | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dotnet.cmd b/dotnet.cmd new file mode 100644 index 0000000000..352444a6fc --- /dev/null +++ b/dotnet.cmd @@ -0,0 +1,30 @@ +@if not defined _echo @echo off +setlocal + +set "__ProjectDir=%~dp0" + +call "%__ProjectDir%"\setup_vs_tools.cmd + +REM setup_vs_tools.cmd will correctly echo error message. +if NOT '%ERRORLEVEL%' == '0' exit /b 1 + +:: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and +:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69). +set Platform= +set __ProjectDir= + +:: Restore the Tools directory +call %~dp0init-tools.cmd +if NOT [%ERRORLEVEL%]==[0] ( + exit /b 1 +) + +pushd %~dp0 +echo Running: dotnet %* +call "%~dp0\Tools\dotnetcli\dotnet.exe" %* +popd +if NOT [%ERRORLEVEL%]==[0] ( + exit /b 1 +) + +exit /b 0 |