VsDevCmd.bat appends to environment variables each time it is called, meaning that you eventually reach a point where you can no longer build. Adding SETLOCAL at the top of the batch file causes the changes from VsDevCmd.bat to be scoped to the lifetime of the batch file
This commit is contained in:
Родитель
f6702be454
Коммит
5c6de9ee33
|
@ -1,4 +1,5 @@
|
|||
@echo off
|
||||
@setlocal ENABLEEXTENSIONS
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
||||
|
||||
echo ***************************************************************************************************
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@echo off
|
||||
@setlocal ENABLEEXTENSIONS
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
||||
|
||||
echo ***************************************************************************************************
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@echo off
|
||||
@setlocal ENABLEEXTENSIONS
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
||||
|
||||
echo ***************************************************************************************************
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@echo off
|
||||
@setlocal ENABLEEXTENSIONS
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
||||
|
||||
echo ***************************************************************************************************
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@echo off
|
||||
@setlocal ENABLEEXTENSIONS
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
||||
|
||||
echo ***************************************************************************************************
|
||||
|
|
Загрузка…
Ссылка в новой задаче