gpt4 book ai didi

.net - 无法解决,因为它是针对 ".NETPortable,Version=v5.0"框架构建的

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

我正在尝试在我的 xamarin 应用程序中实现手指触摸登录

为此我已经安装了包插件。指纹版本1.4.5.0

但它在构建时给我一个错误

The primary reference "Plugin.Fingerprint, Version=1.4.5.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETPortable,Version=v5.0" framework. This is a higher version than the currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile111".

搜索该错误后我得到了这个解决方案

I've converted all projects in my Xamarin solution to netstandard1.1 (I used your guide) and now all works

但我想知道它不会影响应用程序的其他功能吗? 意味着这是正确的解决方案?像这样降级版本不会影响任何其他事情吗?

如果是,此错误的其他解决方案是什么?

请帮忙

最佳答案

我的问题是我不小心在 Mac 上安装了 VS 2019。我只想更新 VS 2017,但你必须非常仔细地阅读更改(前面没有提示你正在升级 VS!)。然后我发现a way to downgrade VS on MacVisualStudioForMac-7.8.4.1。后来,我发现我的 Jenkins 构建(使用 msbuild)无法解决上述故障。

warning MSB3274: The primary reference "Plugin.Fingerprint, Version=1.4.6.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETPortable,Version=v5.0" framework. This is a higher version than the currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile7".

msbuild 版本从 16.0.42-preview+g804bde742b 更改为 16.0.459+g5b35a69a2e。切换到 xbuild 后,我看到了一条已弃用的警告,并且未找到 Java 版本(对于 Droid)。

幸运的是我发现了this post ,其中描述了解决方案。

TLDR:

关于.net - 无法解决,因为它是针对 ".NETPortable,Version=v5.0"框架构建的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48076006/

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