嚴重性 代碼 說明 項目 文件 行 禁止顯示狀態
錯誤 MSB3073 命令“setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.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
:VCEnd”已退出,代碼為 1。 INSTALL C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 155
今天,編譯生成cloudcompare的時候出現了這個報錯,報錯類型一般如上所述,原因是因為VS沒有以管理員身份運行,直接右鍵→以管理員身份運行即可解決.