Description
In .NET 10 ref/net10.0/System.Private.Windows.GdiPlus.dll was added to the WindowsDesktop pack and is referenced from System.Drawing.Common.dll.
However, System.Drawing.Common.dll is included in both WindowsForms and WPF profiles while System.Private.Windows.GdiPlus.dll is only included for WIndowsForms, causing compile error in WPF projects when specific types from System.Drawing.Common.dll are used.
Reproduction Steps
Add the following code to a WPF project and compile:
var bitmap = new Bitmap();
Expected behavior
No compile errors.
Actual behavior
error CS0012: The type 'IImage' is defined in an assembly that is not referenced.
Regression?
Yes, From .NET 9
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response