When building on Windows, it's possible for vcvarsall.bat in the build script to pollute the PATH variable enough to cause the build to fail with this message:
The input line is too long.
The syntax of the command is incorrect.
This can be fixed by modifying the build.bat script to wrap each call %vcvarsallpath% with setlocal and endlocal.
When building on Windows, it's possible for vcvarsall.bat in the build script to pollute the PATH variable enough to cause the build to fail with this message:
This can be fixed by modifying the build.bat script to wrap each
call %vcvarsallpath%
withsetlocal
andendlocal
.See: https://stackoverflow.com/questions/16821784/input-line-is-too-long-error-in-bat-file https://stackoverflow.com/questions/64326217/batch-command-vcvarsall-bat-errors-with-input-line-is-too-long-on-azure-devops