本文介绍了如何在我的xamarin表单解决方案中安装github插件? (VS Mac 2017)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Xamarin Forms用c#进行编码,我想知道如何安装从GitHub下载的插件.我搜索了安装插件的教程,但未发现有关Mac的VS 2017的任何信息.我尝试手动添加文件,但没有成功.

I just started coding in c# with Xamarin Forms and I wanted to know how I could install a plugin that I downloaded from GitHub. I searched for tutorials to install the plugin but I have not found anything about VS 2017 for mac. I tried to add the file manually but I had no success.

我有适用于Mac的Visual Studio 2017.

I have Visual Studio 2017 for Mac.

推荐答案

James Montemagno

Github插件: ConnectivityPlugin

Github Plugin : ConnectivityPlugin

  • 打开您的项目,右键单击软件包",然后选择添加软件包"

如果您使用的是.NET 2,则可以这样做

If you are using .NET 2 you can do it this way

  • 搜索 Xam.Plugin.Connectivity ,我在这里找到了名称(插件通常在其github分支上具有链接)
  • Search for Xam.Plugin.Connectivity I found the name here (plugins normally have a link on their github branch)

Nuget: Xam.Plugin.Connectivity

  • 一旦找到即可对其进行标记,然后单击添加软件包"
  • 一旦添加,您将必须在Android和IOS项目中执行相同的过程(其过程完全相同)

  • Once Added you will have to do the same process in your Android and IOS projects (its exactly the same process)

这就是添加插件的方法:) ...如果您想使该插件正常工作,请随意阅读该插件示例代码此处

And that's how to add a plugin :) ... If you want to get the plugin to work feel free to go through the plugin sample code here

在发布问题之前不要忘记阅读 DOCUMENTATION

don't forget to read DOCUMENTATION before posting a question

这篇关于如何在我的xamarin表单解决方案中安装github插件? (VS Mac 2017)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 16:04