Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get nuget package? #1

Open
Saratsin opened this issue Mar 22, 2021 · 3 comments
Open

How to get nuget package? #1

Saratsin opened this issue Mar 22, 2021 · 3 comments

Comments

@Saratsin
Copy link

Saratsin commented Mar 22, 2021

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

@Saratsin Saratsin changed the title How to get nuget package How to get nuget package? Mar 22, 2021
@humblehacker
Copy link

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
Copy link

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

@primadance
Copy link

primadance commented Aug 7, 2022

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants