I am using VS 2019. Once the project is cloned from bitbucket, I am able to build the solution. If I try to build after cleaning the solution or rebuild, I am getting this error.
Severity Code Description Project File Line Suppression State Error Could not run the "LC" task because MSBuild could not create or connect to a task host with runtime "CLR4" and architecture "x64". Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\amd64\MSBuild.exe" exists and can be run.
I have updated VS but it did not help.
- Updated VS 2019
- deleted .vs folder obj folder and debug folder
- restarted the machine