rotorgames / Rg.Plugins.Popup

Xamarin Forms popup plugin
MIT License
1.15k stars 336 forks source link

When updating to 2.1, errors about System.Drawing.Common.dll #729

Closed zijianhuang closed 8 months ago

zijianhuang commented 2 years ago

🐛 Bug Report

When updating from 2.00.10 to 2.10, VS 2019 or 2022 reports error about

Severity    Code    Description Project File    Line    Suppression State
Error       Failed to add reference. The package 'Rg.Plugins.Popup' 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.
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))             

Expected behavior

Installed

Reproduction steps

Nuget - Solution to update

Configuration

Version: 1.x

2.1.0

Platform:

Xamarin, .NET Standard 3.1

Remarks:

Related threads: https://github.com/Baseflow/XamarinMediaManager/issues/558

https://github.com/jamesmontemagno/MediaPlugin/issues/756

zijianhuang commented 8 months ago

remove the package, and install again rather than update. This resolves the problem.