【问题标题】:Xamarin can not install NuGet packages: profile 259 errorXamarin 无法安装 NuGet 包:配置文件 259 错误
【发布时间】:2017-10-31 05:36:38
【问题描述】:

我正在开发一个跨平台的 Xamarin 应用程序。当我使用 NuGet 包管理器安装新包时,控制台显示此错误:

无法安装软件包“X”您正在尝试安装此软件包 进入目标 .NetPortable, Version=4.5, Profile=259 的项目 但该包不包含任何程序集引用

我知道 Profile 259 通常用于基于 WP 或 Silverlight 的软件包。我尝试在属性→库→更改选项卡上更改配置,但这次系统显示:

项目目标无法更改。所选目标需要 nuget 3.0

我该如何解决这个问题?

这是image of the last error message dialog

【问题讨论】:

    标签: c# xamarin nuget


    【解决方案1】:

    如果您查看此项的 NuGet 定义:

    https://www.nuget.org/packages/Microsoft.AspNet.WebApi.WebHost/

    仅支持net45。因此它无法安装到Profile259

    为了能够安装到Profile259,它需要有一个portable-net45+win8+wpa81+wp8netstandard1.0 的目标框架。

    【讨论】:

    猜你喜欢
    • 2020-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-24
    • 1970-01-01
    • 2021-11-16
    相关资源
    最近更新 更多