How can I install a github plugin into my xamarin

2019-09-26 01:17发布

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.

I have Visual Studio 2017 for Mac.

1条回答
smile是对你的礼貌
2楼-- · 2019-09-26 01:47

Example using Connectivity Plugin by James Montemagno

Github Plugin : ConnectivityPlugin

  • Open your Project and right click on Packages and select add package

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

Packages

  • Search for Xam.Plugin.Connectivity I found the name here (plugins normally have a link on their github branch)

Nuget : Xam.Plugin.Connectivity

  • Once found you can mark it and click on "Add Package"

Packages

  • 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

  • don't forget to read DOCUMENTATION before posting a question

查看更多
登录 后发表回答