【问题标题】:Which is the difference between the two GooglePlayServices of the nuget pacakges?nuget包的两个GooglePlayServices有什么区别?
【发布时间】:2021-06-11 06:59:53
【问题描述】:

我想使用 Google MLKit 的 QR 扫描仪,在 nuget manager 中我找到了两个 packagee。这两个打包器是:

Xamarin.Google.MLKit.BarcodeScanning v116.1.0 描述为:Xamarin.Android Bindings for Google Play Services - Xamarin.Google.MLKit.BarcodeScanning

Xamarin.GooglePlayServices.MLKit.BarcodeScanning v116.1.3 描述为:Xamarin.Android Bindings for Google Play Services - MLKit.BarcodeScanning

Google Play Services 和 Google.MLKit 有什么区别?

谢谢。

【问题讨论】:

    标签: xamarin google-mlkit


    【解决方案1】:

    对于 Xamarin.Google.MLKit.BarcodeScanning,有一些依赖项,Xamarin.GooglePlayServices.MLKit.BarcodeScanning 是依赖项之一,您可以从以下截图:

    关于 Nuget 依赖项:

    当您将 NuGet 包安装到 sdk 样式的 .NET Standard 2.0 项目中时,不会将任何引用直接添加到您的项目文件 (.csproj) 中。相反,只会添加一个 PackageReference。 NuGet 包中的程序集仍将在构建时使用,但不会直接添加到项目文件中。

    NuGet 也只会为已安装的包添加单个 PackageReference。与使用 packages.config 文件不同,它不会将所有依赖项添加到您的项目文件中,但它们会被隐式使用。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-25
    • 2023-03-09
    • 2012-06-12
    • 2016-10-06
    相关资源
    最近更新 更多