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

编程入门 行业动态 更新时间:2024-10-28 00:21:54
本文介绍了无法在 Visual Studio 2013 中为 PCL 配置文件 158 安装包 MvvmCross.PortableSupport 3.2.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I have the following setup and still couldn't add mvmcross libraries to my project:

  • VS2013 更新 3
  • Nuget 包管理器 2.8.50313.46
  • PCL Profile 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.

    推荐答案

    问题是Xamarin.iOS框架是iOS统一项目的新框架,NuGet 2.8.2没有将其视为可选框架(2.8.50313.46) 或更早版本将可移植类库 (PCL) 程序集安装到 PCL 项目中.NuGet 2.8.2 将 MonoAndroid 和 MonoTouch 视为可选,而不是 Xamarin.iOS.

    The problem is that the Xamarin.iOS framework, which is a new framework for iOS Unified projects, is not treated as an optional framework by NuGet 2.8.2 (2.8.50313.46) or older when installing a Portable Class Library (PCL) assembly into a PCL project. NuGet 2.8.2 treats MonoAndroid and MonoTouch as optional but not Xamarin.iOS.

    所以你的选择是以下之一:

    So your options are one of the following:

  • 安装 NuGet 2.8.3 alpha.
  • 删除新的 Xamarin.iOS PCL 配置文件 xml 文件 (Xamarin.iOS.Unified.xml).
  • NuGet 2.8.3 alpha 已修改,因此它可以识别 Xamarin.iOS 框架并将其视为可选.

    NuGet 2.8.3 alpha has been modified so it is aware of the Xamarin.iOS framework and treats it as optional.

    新的 Xamarin.iOS PCL 配置文件 xml 文件由较旧的 Xamarin 3.6 版本之一安装.最新的 Xamarin 3.6 版本不安装新的 iOS 统一 PCL 配置文件 xml 文件,并且需要 第二个安装程序 安装 NuGet 2.8.3 alpha 和新的配置文件 xml 文件.

    The new Xamarin.iOS PCL profile xml files were installed by one of the older Xamarin 3.6 releases. The latest Xamarin 3.6 release does not install the new iOS unified PCL profile xml files and requires a second installer which installs NuGet 2.8.3 alpha and the new profile xml files.

    如果您选择选项 2),请注意这样做会阻止将 NuGet 包(例如 MvvmCross.PortableSupport)安装到 Xamarin.iOS 统一项目中.

    If you go for option 2) please be aware that doing so will prevent the installation of NuGet packages, such as MvvmCross.PortableSupport into a Xamarin.iOS Unified project.

    更多推荐

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

    本文发布于:2023-10-07 10:53:06,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1469199.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:配置文件   中为   安装包   Studio   Visual

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!