Skip to content

Package install fails for Xamarin Android project in VS 2017 #73

Closed

Description

@RandomEngy

When trying to add Grace 6.0.0 to a Xamarin Android project in VS 2017, I get this error:

Failed to add reference. The package 'Grace' tried to add a framework reference to 'System.Collections' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
Error HRESULT E_FAIL has been returned from a call to a COM component.

I was also getting this error in 5.1.0.

Activity

  1. ipjohnson commented on Mar 27, 2017

    @ipjohnson
    Owner

    Sorry about that I'll take a look at it this evening, I was trying to list only the dependencies the package needed and apparently didn't come up with a set that works for everything.

    There shouldn't be anything that's not supported so it should just be a matter of picking the correct target and dependencies to publish with.

    Just so I have another package to look at do you have any other nuget packages that are installing correctly? I've not worked with the Xamarin Android platform so it might be helpful to see a package that is happily installing.

  2. RandomEngy commented on Mar 27, 2017

    @RandomEngy
    Author
  3. ipjohnson commented on Mar 27, 2017

    @ipjohnson
    Owner

    Perfect thanks. I'm getting 2017 installed right now so I can test it out. Hopefully it's really just a matter of targeting MonoAndriod in the project.json file.

  4. ipjohnson commented on Mar 27, 2017

    @ipjohnson
    Owner

    Ok looks like it was much easier than I originally thought. The PCL profile 259 target was being picked up instead of the .net standard 1.0.

    I've deleted the profile 259 target and released a beta to nuget. I was able to create a android project in VS 2017, added Grace, and was able to export and locate an instance.

  5. added this to the 6.0.1 milestone on Mar 27, 2017
  6. RandomEngy commented on Mar 28, 2017

    @RandomEngy
    Author

    Looks like the new version works, thanks! Very impressed by the instant turnaround on these issues.

  7. ipjohnson commented on Mar 28, 2017

    @ipjohnson
    Owner

    Thanks I try and be responsive as I'm on the other end of things sometimes.

    I'll probably roll out a 6.0.1 final release this weekend along side some performance tweaks for ASP.Net core support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions