[Breaking change]: System.Windows.Extensions package no longer references System.Drawing.Common #37525
Closed
1 of 3 tasks
Labels
breaking-change
Indicates a .NET Core breaking change
🏁 Release: .NET 8
Work items for the .NET 8 release
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
source incompatible
Source code may encounter a breaking change in behavior when targeting the new version.
Description
The
System.Windows.Extensions
package no longer references theSystem.Drawing.Common
package.Version
.NET 8 Preview 7
Previous behavior
The
System.Windows.Extensions
package referenced theSystem.Drawing.Common
package.New behavior
The
System.Windows.Extensions
package no longer references theSystem.Drawing.Common
package. If you depended on this package reference bringing inSystem.Drawing.Common
it will no longer do so.You may see a compilation error like:
Or complaints of other missing types in System.Drawing.
Type of breaking change
Reason for change
This avoids a dependency on
System.Drawing.Common
whenSystem.Windows.Extensions
is referenced.This will help more components remove a dependency on
System.Drawing.Common
unless they actually need it. See dotnet/msbuild#8962.Recommended action
If you still need to use
System.Drawing.Common
add a direct reference.Feature area
Windows Forms
Affected APIs
No response
Associated WorkItem - 177288
The text was updated successfully, but these errors were encountered: