Redth / Xamarin.Binding.Helpers

MSBuild Tasks to help with Binding projects for Xamarin Android and iOS
MIT License
42 stars 7 forks source link

How to get nuget package? #1

Open Saratsin opened 3 years ago

Saratsin commented 3 years ago

i'm trying to implement slim bindings approach, but I got stuck on the first step. There's no Xamarin.Binding.Helpers package on nuget.org. I've tried to download it manually from here and use from my local nuget source, but it still fails for some reason. How can I download and add this nuget package properly to my Xamarin.Android Bindings project? I'm using macOS, have tried with Visual Studio for Mac and Rider IDE-s

P.S. I've tried also to restore packages with command line as it is mentioned on packages site: dotnet add PROJECT package Xamarin.Binding.Helpers --version 0.1.0-ci516977228. As a result I got such error: The imported project "/usr/local/share/dotnet/sdk/5.0.201/Xamarin/Android/Xamarin.Android.Bindings.targets" was not found

humblehacker commented 3 years ago

This worked for me:

  1. In Visual Studio, add a Nuget source with name Redth, location of https://nuget.pkg.github.com/redth/index.json, your GitHub username, and a personal access token with the read:packages scope.
  2. On the "Manage NuGet Packages" dialog, choose the source Redth, and make sure Show pre-release packages is checked.
F-Goncalves commented 2 years ago

Thanks @humblehacker for the instructions. @Redth or someone else via PR should definitely add this to the Readme.

primadance commented 2 years ago
Screen Shot 2022-08-07 at 10 20 54 AM

When trying to add it to my Android binding project I get an error below: "Unable to find package Xamarin.Binding.Helpers. No packages exist with this id in source(s): nuget.org"