It seems that there are several answers to this question, so I will add personal information from personal experience, hoping that this will save someone time / stress.
Make sure that all the projects in your solution are configured for the same version of .NET.
Like the OP, there were 0 errors, but the assembly did not work. However, there was one warning entry (buried between several hundred useless XML warnings ...) that said that one project was for a different version of .NET than the project that referenced it. The whole problem was that one project in my solution was for .NET 4.5.2, while the rest was aimed at 4.5.1. It should work even with this discrepancy (hence, it was just a warning), but, unfortunately, it broke the assembly.
The strange part was that it built / worked fine for a while, but suddenly the assembly started to fail, causing one problem. Not sure what I did for this to start complaining about different target versions of .NET, but I feel that in Visual Studio there are only some puzzles that will never be solved.
Alan Thomas Nov 02 '16 at 23:03 2016-11-02 23:03
source share