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

Getting "Failed to add reference" error about reference to System.Drawing.Common.dll when updating nuget package to 2.0 version #162

Closed
atantasook opened this issue Feb 24, 2020 · 8 comments

Comments

@atantasook
Copy link

atantasook commented Feb 24, 2020

To help us fix your issue, please provide the information in the below template. If something causes a crash, provide as much information as you can gather.
Just imagine: we do not know what you are doing!

Note: There is often little we can do without a minimal reproducible sample of the issue, so please provide that in a standalone git repository and link it here.

Steps to reproduce

  1. In Visual Studio, open your Xamarin solution.
  2. Right-click on the solution and 'Manage Nuget Packages for Solution.
  3. Go to Updates tab.
  4. Update Plugin.Fingerprint to version 2.0
  5. Go through the prompts to update.

Expected behavior

Nuget package is updated to version 2.0.0

Actual behavior

Getting the error below:
Failed to add reference. The package 'Plugin.Fingerprint' tried to add a framework reference to 'System.Drawing.Common.dll' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
Reference unavailable.

Crashlog

If something causes an exception paste full stack trace + Exception here

Configuration

Version of the Plugin: v2.0.0.0
Platform: Xamarin Forms, 4.4, iOS 13.2, Android 10

@smsissuechecker
Copy link

Hi @atantasook,

I'm the friendly issue checker.
Thanks for using the issue template 🌟
I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

@smstuebe
Copy link
Owner

smstuebe commented Feb 24, 2020

Hi @atantasook,

what are your target frameworks (.net frameworks)?
have you tried a clean install? Uninstall the old version and then install the new version manually?

@atantasook
Copy link
Author

Hi, @smstuebe,

I'm targeting .Net Standard 2.0. I tried clean install and got the same message.
I appreciate your help!

@smstuebe
Copy link
Owner

@atantasook Hmm I just created a new netstandard library and could install it without any problems.
Is you VS 2019 up to date? I've searched for your error and it looks like this was an issue late 2019.

@atantasook
Copy link
Author

My VS is version 16.4.5 so it's currently the latest. My netstandard library project was converted from PCL so maybe there is something to that.

@smstuebe
Copy link
Owner

ahh. can you create a clean one and try again? the conversion usually leaves in some unnecessary stuff.

@atantasook
Copy link
Author

I was able to get through installation for the netstandard library project. Yay! Now, i get the same error on my iOS project.

@atantasook
Copy link
Author

Changing my iOS project to PackageReference did the trick.

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

3 participants