问题
I am trying to create a mobile app for windows and andriod that utilizes azure mobile app service (Azure Mobile Apps NOT Mobile services). I would like to have my models in a PCL and use them in all of my projects. However, the azure service expects the models to inherit from EntityData, which is found in the Microsoft.Azure.Mobile.Server.Entity package. When I try to install that package on the PCL project I get the following error:
Error Could not install package 'Microsoft.Azure.Mobile.Server 1.0.119'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
Is there any way to reference the Microsoft.Azure.Mobile.Server.Entity package from a PCL or do I have to move all my models to the server project and reference the server project in all my other projects?
来源:https://stackoverflow.com/questions/34882495/reference-azure-mobile-net-server-sdk-nuget-in-pcl-so-i-can-have-models-in-pcl