nuget pacakges 的两个 GooglePlayServices 之间的区别是什么? [英] Which is the difference between the two GooglePlayServices of the nuget pacakges?

查看:40
本文介绍了nuget pacakges 的两个 GooglePlayServices 之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用谷歌MLKit的二维码扫描器,在nuget管理器中找到了两个packagese.这两个打包程序是:

I wanted to use the QR scanner of the MLKit of Google, and in the nuget manager I have found two packagese. The two packager are:

Xamarin.Google.MLKit.BarcodeScanning v116.1.0 其描述是:Xamarin.Android 绑定 Google Play 服务 - Xamarin.Google.MLKit.BarcodeScanning

Xamarin.Google.MLKit.BarcodeScanning v116.1.0 which description is: 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

Xamarin.GooglePlayServices.MLKit.BarcodeScanning v116.1.3 which desciption is: Xamarin.Android Bindings for Google Play Services - MLKit.BarcodeScanning

Google Play 服务和 Google.MLKit 之间有什么区别?

Which is the difference between Google Play Services and Google.MLKit?

谢谢.

推荐答案

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

For Xamarin.Google.MLKit.BarcodeScanning, there are some dependencies, the Xamarin.GooglePlayServices.MLKit.BarcodeScanning is one of dependencies, you can get this from the following screenshot:

关于 Nuget 依赖项:

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

When you install a NuGet package into a sdk style .NET Standard 2.0 project no references will be directly added to your project file (.csproj). Instead just a PackageReference will be added. The assemblies from the NuGet package will still be used at build time but will not be added directly to the project file directly.

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

NuGet will also only add the single PackageReference for the package installed. Unlike using a packages.config file it will not add all the dependencies to your project file but they will be implicitly used.

这篇关于nuget pacakges 的两个 GooglePlayServices 之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆