安装Scandit失败。该程序包不包含任何与该框架兼容的程序集引用或内容文件

问题描述 投票:0回答:1

我正在尝试将nuget软件包“ Scandit”安装到我的项目中。

IDE:Visual Studio Mac(Xamarin.Forms 4.6.0.726)

以下是错误消息。

Attempting to gather dependency information for package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' with respect to project 'Modbusbutton3', targeting '.NETPortable,Version=v4.5,Profile=Profile78'
CACHE https://api.nuget.org/v3/registration5-gz-semver2/scandit.barcodepicker.xamarin/index.json
Total number of results gathered : 52
Gathering dependency information took 217.67 ms
Summary of time taken to gather dependencies per source :
https://api.nuget.org/v3/index.json - 5.27 ms
Attempting to resolve dependencies for package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Scandit.BarcodePicker.Xamarin.5.14.5.10'
Resolved actions to install package 'Scandit.BarcodePicker.Xamarin.5.14.5.10'
Found package 'Scandit.BarcodePicker.Xamarin 5.14.5.10' in '/Users/dej.pvi/Downloads/20200506-WiFi Solution for iOS/packages'.
For adding package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' to project 'Modbusbutton3' that targets 'portable45-net45+win8+wp8'.
Install failed. Rolling back...
Package 'Scandit.BarcodePicker.Xamarin.5.14.5.10' does not exist in project 'Modbusbutton3'
Executing nuget actions took 15.64 ms
Could not install package 'Scandit.BarcodePicker.Xamarin 5.14.5.10'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', 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.

任何人都可以帮助解决此问题吗?谢谢!

ios xamarin xamarin.forms barcode
1个回答
0
投票

Scandit.BarcodePicker.Xamarin

此软件包仅安装在Android和iOS项目中。

enter image description here

Scandit.BarcodePicker.Unified

此软件包已安装在每个项目中。

enter image description here

根据您的日志目标框架,是PCL。您可能会考虑将项目转换为.NETStandard 2.0,因为这可能是导致您无法安装此软件包的另一个问题。检查link here

© www.soinside.com 2019 - 2024. All rights reserved.