jcintra
jcintra

Reputation: 877

Visual Studio 2022 build failed - but showing no errors

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?

Upvotes: 38

Views: 35571

Answers (7)

memtrk
memtrk

Reputation: 1049

On error view, Change Show issues generated to "Build Only"

Change Show issues generated

Upvotes: 104

anaitslimane
anaitslimane

Reputation: 407

Had exactly the same problem. None of the above answers worked for me.

So I tried the old "turn it off and then back on again" and it worked

Upvotes: 2

DavidWainwright
DavidWainwright

Reputation: 2935

Open Visual Studio Installer, click Modify on the version that's not working, select the Individual Components tab, untick Intellicode and click Modify (bottom right).

Once it's finished, go through the same process but tick it this time, restart VS (which you have to do anyway).

Upvotes: 1

Bob Sarfo
Bob Sarfo

Reputation: 17

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

Upvotes: 0

muhammed anseer
muhammed anseer

Reputation: 11

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.

Upvotes: 1

Adeel Ahmed
Adeel Ahmed

Reputation: 345

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

Upvotes: 6

Ishan
Ishan

Reputation: 295

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.

Upvotes: 3

Related Questions