Muokkaa

Jaa


ConfigurationManager package no longer references System.Security.Permissions

The System.Configuration.ConfigurationManager package no longer references the System.Security.Permissions package.

Version introduced

.NET 8 Preview 3

Previous behavior

The System.Configuration.ConfigurationManager package referenced the System.Security.Permissions package.

New behavior

Starting in .NET 8, the System.Configuration.ConfigurationManager package does not reference the System.Security.Permissions package.

Type of breaking change

This change can affect source compatibility.

Reason for change

This change avoids a dependency on System.Drawing.Common when System.Configuration.ConfigurationManager is referenced, which is primarily an issue for non-Windows operating systems.

The dependency on System.Drawing.Common was caused by the following package dependencies:

System.Configuration.ConfigurationManager
└──System.Security.Permissions
    └──System.Windows.Extensions
        └──System.Drawing.Common

If your app references the System.Configuration.ConfigurationManager package and you also have a dependency on System.Security.Permissions or any of its dependencies, which might include System.Windows.Extensions, System.Security.AccessControl, or System.Drawing.Common, you'll need to reference those packages either directly or indirectly.

Affected APIs

N/A