The main.cs of my project returns the following warning:
Warning 1 The type \'Extensions.MessageDetails\' in \'PATH\\Extensions.cs\'
You can't have two copies of the extensions class, even though the code is the same they are not seen as the same object. Both your dll and main application will need to reference the exact same one.
You could try creating a 'Common Files' class library and add the extensions class to it, that way you will always be using the correct class