Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: The command "setlocal

Shilesh Babu 0 Reputation points
2024-09-27T06:44:17.1866667+00:00

Hi Team,

I am building google unit test for my project using visual studio-2022, but getting below errors, please let me know how i can fix below errors.

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: The command "setlocal [C:\Users\shilesh.babu\Downloads\UnitTestCase\cori-nat

ive-agent\Services\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E make_directory C:/Users/shilesh.ba

bu/Downloads/UnitTestCase/cori-native-agent/Services/Agent/UnitTests/build/build_agent && "C:/Program Files/CMake/bin/cmake.exe" -G "Visual Studio 17 2022" -T ClangCL -DUnitTest=ON -S C:/Users/shilesh.babu/Dow

nloads/UnitTestCase/cori-native-agent/Services/Agent/UnitTests/.. -B C:/Users/shilesh.babu/Downloads/UnitTestCase/cori-native-agent/Services/Agent/UnitTests/build/build_agent && "C:/Program Files/CMake/bin/cma

ke.exe" --build C:/Users/shilesh.babu/Downloads/UnitTestCase/cori-native-agent/Services/Agent/UnitTests/build/build_agent [C:\Users\shilesh.babu\Downloads\UnitTestCase\cori-native-agent\Services\Agent\UnitTest

s\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\shilesh.babu\Downloads\UnitTestC

ase\cori-native-agent\Services\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :cmEnd [C:\Users\shilesh.babu\Downloads\UnitTestCase\cori-native-agent\Servi

ces\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\shilesh.

babu\Downloads\UnitTestCase\cori-native-agent\Services\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :cmErrorLevel [C:\Users\shilesh.babu\Downloads\UnitTestCase\cori-native-agen

t\Services\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: exit /b %1 [C:\Users\shilesh.babu\Downloads\UnitTestCase\cori-native-agent\S

ervices\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :cmDone [C:\Users\shilesh.babu\Downloads\UnitTestCase\cori-native-agent\Serv

ices\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Users\shilesh.babu\Downloads\UnitTestC

ase\cori-native-agent\Services\Agent\UnitTests\build\AllTests.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\shilesh.babu\Downloads\UnitTestCase\co

ri-native-agent\Services\Agent\UnitTests\build\AllTests.vcxproj]

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,107 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.