提交 464c4f2e 编写于 作者: K Kevin Pilch 提交者: GitHub

Merge pull request #14956 from Pilchie/NoRoslynRoot

Don't rely on %RoslynRoot% being set
......@@ -4,7 +4,7 @@
set CommonToolsDir=%VS150COMNTOOLS%
:: VS150COMNTOOLS is not set globally any more, so fall back to using the managed query api before trying Dev14
if not exist "%CommonToolsDir%" for /f "usebackq delims=" %%v in (`powershell -noprofile -executionPolicy Bypass -file "%RoslynRoot%build\scripts\locate-vs.ps1"`) do set "CommonToolsDir=%%v"
if not exist "%CommonToolsDir%" for /f "usebackq delims=" %%v in (`powershell -noprofile -executionPolicy Bypass -file "%~dp0build\scripts\locate-vs.ps1"`) do set "CommonToolsDir=%%v"
if not exist "%CommonToolsDir%" set CommonToolsDir=%VS140COMNTOOLS%
if not exist "%CommonToolsDir%" exit /b 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册