I've got shared library project in Visual Studio which I'd like to use in Windows Forms and Android/iOS/Windows 8.1 projects. For WinForms I'm using Urho and for mobile I'm using Urho.Forms, as the UI is done using Xamarin.Forms.
It looks like I can't do it that way, because:
When the shared library references Urho.Forms, I have to reference Urho.Forms in my WinForms application - which doesn't work, as it doesn't have to Desktop namespace and desktop initializers.
When the shared library references Urho, I can't share common mobile UI code which uses Urho.Sharp + I'd have type mismatches (same classes from different libraries) in mobile projects.
When the shared library references both, I've got conflict with reference ambiguity.
What can I do to share one codebase on top of UrhoSharp between WindowsForms and Xamarin.Forms applications?