Visual Studio 2022 build failed - but showing no errors

Viewed 4996

The only strange thing is a warning on the projects, but without any indication of what it is:

enter image description here

enter image description here

enter image description here

Any ideas?

5 Answers

If you have multiple projects under same solution make sure the Target Framework (Right click project -> properties) of each project is feasible for the referencing project. I was trying to refer to a project (v4.8) from v4.6 and encountered this error.

And also try checking the build order of the project (Right click solution -> Project Build Order) and clean and build each projects according to that order.

Go to location of the project, delete .vs folder and re-build again.

If you have Symantec Antivirus running on your machine, it could block MSBuild.exe from Visual Studio resulting in the build failing.

You may re-install/ reconfigure Symantec to allow MSBuild.exe.

open your terminal and run using shift +`` key in visual studio. Run dotnet run all errors will be shown on terminal

Related