Reference Azure Mobile .NET Server SDK NUGET in PCL so I can have models in PCL

别等时光非礼了梦想. 提交于 2019-12-11 01:06:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!