首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ServiceStack - 'ServiceStack.Interfaces 4.0.32‘和PCL

ServiceStack - 'ServiceStack.Interfaces 4.0.32‘和PCL
EN

Stack Overflow用户
提问于 2014-10-25 19:02:22
回答 1查看 192关注 0票数 0

尝试将ServiceStack安装到PCL中,但出现以下错误:

无法安装程序包'ServiceStack.Interfaces 4.0.32‘。您正尝试将此程序包安装到以'portable-net45+win+wpa81+MonoAndroid10+MonoTouch10',为目标的项目中,但该程序包不包含任何与该框架兼容的程序集引用或内容文件。有关更多信息,请联系包的作者。

我安装了最新的nuget包。

有什么办法可以修复吗?

EN

回答 1

Stack Overflow用户

发布于 2014-10-26 01:08:09

ServiceStack的Hello Mobile项目包含有关ServiceStack的Hello Mobile支持的详细信息,其中ServiceStack.Interfaces是基于Profile136构建的,而ServiceStack.TextServiceStack.Client NuGet包只支持Profile7,即PCL支持不包括Windows Phone或Silverlight,尽管NuGet包确实包括针对Silverlight的自定义构建。

可移植类库支持

大多数客户端都使用ServiceStack的新PCL支持,这些支持包含在以下NuGet包中:

  • ServiceStack.Interfaces (Profile136)

  • 配置文件: iOS、安卓、Windows8、.NET 4.0、Silverlight5、WP8 PCL

  • ServiceStack.Client (Profile7)
  • Custom 5

  • 配置文件: iOS、安卓、Windows8、Silverlight 4.5 (Profile7)
  • Custom builds: NET40

  • ServiceStack.Text (Profile7)
  • Custom 5

  • 配置文件: iOS、安卓、Windows8、Silverlight 4.5 (Profile7)
  • Custom builds: NET40

您需要确保您引用的项目与支持的PCL配置文件匹配。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26561665

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档