Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have installed MS Build Tools for Visual Studio Code in Windows.
When executing the cmake .." command on terminal, getting below error:

"Failed to run MSBuild command: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/amd64/MSBuild.exe
to get the value of VCTargetsPath:
Access violation "

I have searched the solution for the issue, but couldn't et the working solution.

So, I am writing here the issue for the solution.

What I have tried:

I have installed Visual Studio Code in Windows and trying to config and build the project using CMakeLists.txt
Posted
Comments
Richard MacCutchan 25-May-23 10:57am    
The Access violation message suggests it cannot read or write some directory or file. You need to capture more information from the failure.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900