2017-06-07 13:16:24 +00:00
|
|
|
@if not defined _echo @echo off
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
if not defined VisualStudioVersion (
|
2019-04-12 14:10:50 +00:00
|
|
|
if defined VS150COMNTOOLS (
|
|
|
|
call "%VS150COMNTOOLS%\VsDevCmd.bat"
|
|
|
|
goto :Run
|
|
|
|
)
|
2017-06-07 13:16:24 +00:00
|
|
|
if defined VS140COMNTOOLS (
|
|
|
|
call "%VS140COMNTOOLS%\VsDevCmd.bat"
|
|
|
|
goto :Run
|
|
|
|
)
|
2019-04-12 14:10:50 +00:00
|
|
|
echo Error: Visual Studio 2015 or 2017 required.
|
2017-06-07 13:16:24 +00:00
|
|
|
exit /b 1
|
|
|
|
)
|
|
|
|
|
|
|
|
:Run
|
2019-04-12 14:10:50 +00:00
|
|
|
powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0..\eng\dotnet.ps1 -- %*"
|
2017-06-07 13:16:24 +00:00
|
|
|
exit /b %ERRORLEVEL%
|