Reputation: 877
The only strange thing is a warning on the projects, but without any indication of what it is:
Any ideas?
Upvotes: 38
Views: 35571
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
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
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
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
Reputation: 345
Go to location of the project, delete .vs folder and re-build again.
Upvotes: 6
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