无法将 MvvmCross 升级到 6.2.0
Unable to upgrade MvvmCross to 6.2.0
我有一个旧的跨平台移动应用程序项目,它是在 Visual Studio 2017 年使用 Xamarin 开发(和维护)的。iOS 应用程序现在 运行 遇到以下问题 iOS 11(主要是相机问题 - 我已经将新的权利 - NSPhotoLibraryUsageDescription - 添加到 Info.plist,所以这不是问题)。现在,当我在可移植项目上要求 NuGet 将 MvvmCross 依赖项从 5.7.0 升级到 6.2.0 时,我收到此错误:
Could not install package 'MvvmCross 6.2.0'. You are trying to
install this package into a project that targets
.NETPortable,Version=v4.5,Profile=Profile111', 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.
更新
找到了将 .NET Framework 更改为 4.6 的位置,但每当我尝试时,当我单击“确定”时它会自动恢复为 4.5。
如错误消息所示,您的项目面向 .NET 4.5,MVVMCross 6.2.0 不支持。 fuget.org 列出支持的目标。您将需要更新您的项目以使用受支持的目标之一
对于真正不是 .NET 或应用程序开发人员的任何其他人,我只想离开
此处解决问题。
在大量阅读文章后,我发现,正如 SushiHangover 也指出的那样,解决方案是将核心项目从 PCL 迁移到标准。
本文以某种方式描述了事件、时间、地点和方式:https://docs.microsoft.com/da-dk/dotnet/standard/net-standard#comparison-to-portable-class-libraries
感谢您的帮助!
我有一个旧的跨平台移动应用程序项目,它是在 Visual Studio 2017 年使用 Xamarin 开发(和维护)的。iOS 应用程序现在 运行 遇到以下问题 iOS 11(主要是相机问题 - 我已经将新的权利 - NSPhotoLibraryUsageDescription - 添加到 Info.plist,所以这不是问题)。现在,当我在可移植项目上要求 NuGet 将 MvvmCross 依赖项从 5.7.0 升级到 6.2.0 时,我收到此错误:
Could not install package 'MvvmCross 6.2.0'. You are trying to install this package into a project that targets .NETPortable,Version=v4.5,Profile=Profile111', 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.
更新
找到了将 .NET Framework 更改为 4.6 的位置,但每当我尝试时,当我单击“确定”时它会自动恢复为 4.5。
如错误消息所示,您的项目面向 .NET 4.5,MVVMCross 6.2.0 不支持。 fuget.org 列出支持的目标。您将需要更新您的项目以使用受支持的目标之一
对于真正不是 .NET 或应用程序开发人员的任何其他人,我只想离开 此处解决问题。
在大量阅读文章后,我发现,正如 SushiHangover 也指出的那样,解决方案是将核心项目从 PCL 迁移到标准。
本文以某种方式描述了事件、时间、地点和方式:https://docs.microsoft.com/da-dk/dotnet/standard/net-standard#comparison-to-portable-class-libraries
感谢您的帮助!