I have a WebApplication which contains reference to WCF services.
While building using Visual Studio 2010, Build fails without any error or warning. However building
this can happen when one of the projects referenced is a higher version of the .NET framework than your current project.
With Visual Studio 2019, I had to 'Run as as administrator' and it finally built ok. So open the application as admin (right mouse click- run as Administrator).
If nuget package 'Microsoft.Net.Compilers' is installed, make sure that it suits version of your Visual Studio (Build Tools version).
Versions 1.x mean C# 6.0 (Visual Studio 2015 and updates). For instance, 1.3.2
So don't upgrade to version above 1.x if you use VS2015
https://stackoverflow.com/a/44397905/3862615
Delete .vs folder & restart VS, worked for me
On my side, i got this problem when i added a new project (Library)
How i solved it
Right click the new added Library go to Properties then Application, under Application change the Target Framework to the framework of all projects.
The problem is that you have project using different target frameworks.
Seems that there are multiple answers to this question, so I'll add mine from personal experience hoping it will save someone time/stress.
Make sure all the projects in your solution are targeting the same .NET version.
Similar to OP, there were 0 errors but the build kept failing. However, there was one warning entry (buried in between several hundred useless XML warnings...) saying that one project was targeting a different .NET version than a project that was referencing it. The entire issue was that one project within my solution was targeting .NET 4.5.2, when the rest were targeting 4.5.1. It should work even with this discrepancy (hence why it was just a warning) but unfortunately, it broke the build.
The strange part was that it built/ran fine for a while, but suddenly the build started failing one time causing this issue. Not sure what I did for it to start complaining about differing .NET target versions, but I feel that there are just some mysteries in Visual Studio that will never be solved.