gpt4 book ai didi

xamarin - 无法在 Visual Studio 2013 中为 PCL 配置文件 158 安装包 MvvmCross.PortableSupport 3.2.1

转载 作者:行者123 更新时间:2023-12-03 22:08:22 25 4
gpt4 key购买 nike

我有以下设置,但仍然无法将 mvmcross 库添加到我的项目中:

  • VS2013 更新 3
  • Nuget 包管理器 2.8.50313.46
  • PCL 配置文件 158(我也尝试过其他类似 78 等)

  • 安装日志如下:
    Attempting to resolve dependency 'MvvmCross.HotTuna.StarterPack (≥ 3.2.1)'.
    Attempting to resolve dependency 'MvvmCross.HotTuna.MvvmCrossLibraries (≥ 3.2.1)'.
    Attempting to resolve dependency 'MvvmCross.HotTuna.CrossCore (≥ 3.2.1)'.
    Attempting to resolve dependency 'MvvmCross.PortableSupport (≥ 3.2.1)'.
    Installing 'MvvmCross.PortableSupport 3.2.1'.
    Successfully installed 'MvvmCross.PortableSupport 3.2.1'.
    Installing 'MvvmCross.HotTuna.CrossCore 3.2.1'.
    Successfully installed 'MvvmCross.HotTuna.CrossCore 3.2.1'.
    Installing 'MvvmCross.HotTuna.MvvmCrossLibraries 3.2.1'.
    Successfully installed 'MvvmCross.HotTuna.MvvmCrossLibraries 3.2.1'.
    Installing 'MvvmCross.HotTuna.StarterPack 3.2.1'.
    Successfully installed 'MvvmCross.HotTuna.StarterPack 3.2.1'.
    Installing 'MvvmCross 3.2.1'.
    Successfully installed 'MvvmCross 3.2.1'.
    Adding 'MvvmCross.PortableSupport 3.2.1' to ClassLibrary1.
    Uninstalling 'MvvmCross.PortableSupport 3.2.1'.
    Successfully uninstalled 'MvvmCross.PortableSupport 3.2.1'.
    Install failed. Rolling back...
    Could not install package 'MvvmCross.PortableSupport 3.2.1'. You are trying to install this package into a project that targets 'portable-net45+win+wp80+Xamarin.iOS10+MonoAndroid10+MonoTouch10', 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.

    最佳答案

    我将配置文件更改为 259,它正在工作。

    如果有人不知道如何更改配置文件:

    在解决方案资源管理器中,右键单击项目名称并选择编辑项目配置文件。寻找线:

    <TargetFrameworkProfile>Profile158</TargetFrameworkProfile> 

    并将 Profile158 更改为 Profile259。确保它下面的行:
     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 

    设置为 v4.5 而不是 v4.0,否则您将在尝试重新加载项目时收到错误消息。要重新加载项目,只需在解决方案资源管理器中再次右键单击项目名称,然后选择重新加载项目。

    关于xamarin - 无法在 Visual Studio 2013 中为 PCL 配置文件 158 安装包 MvvmCross.PortableSupport 3.2.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26068750/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com