【问题标题】:Install Scandit fail. The package does not contain any assembly references or content files that are compatible with that framework安装 Scandit 失败。该包不包含任何与该框架兼容的程序集引用或内容文件
【发布时间】:2020-05-18 06:02:34
【问题描述】:

我正在尝试将 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】:

    当我检查 Scandit.BarcodePicker github sample 他们使用两个不同的包。

    Scandit.BarcodePicker.Xamarin

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

    Scandit.BarcodePicker.Unified

    这个包安装在每个项目中。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-20
      • 2018-11-19
      • 1970-01-01
      相关资源
      最近更新 更多