The main.cs of my project returns the following warning:
Warning 1 The type \'Extensions.MessageDetails\' in \'PATH\\Extensions.cs\'
I had faced same problem. Just a simple solution for that.
Check your project references there must be same project reference. just remove that, it will work.