3
我在Visual Studio 2010中有一个后生成命令:Visual Studio 2010中的“错误MSB3073” - 生成后命令不能处理换行符?
setlocal
cd D:\1.5\BINZ
if %errorlevel% neq 0 goto :cmEnd
D:
if %errorlevel% neq 0 goto :cmEnd
"C:\Program Files\CMake 2.8\bin\cpack.exe" -C $(Configuration) --config ./CPackConfig.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
一台PC上工作的,另一个不:我得到错误MSB3037的每一行。
3>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "setlocal
3>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: cd D:\1.5\BINZ
等
一个奇怪的是,当我打开项目看,到我上述生成后事件命令 - 换行我看为正方形。
它可能是一个换行问题?
感谢您的帮助) – 2018-02-22 11:30:01