Announcements
Announcements copied to clipboard
Assemblies removed from Microsoft.AspNetCore.App shared framework
Assemblies removed from Microsoft.AspNetCore.App shared framework
As part of our ongoing work to reduce the size of the ASP.NET Core shared framework, the following assemblies were removed from the ASP.NET Core targeting pack:
- System.Security.Permissions
- System.Windows.Extensions
Applications upgrading to net6.0 would no longer be able to reference APIs provided by these libraries without adding additional PackageReference
to their projects.
In addition, the following assemblies have been removed from the ASP.NET Core runtime pack:
- Microsoft.Win32.SystemEvents
- System.Drawing.Common
- System.Security.Permissions
- System.Windows.Extensions
Applications that use APIs from these libraries but use them in a 6.0 version of Microsoft.AspNetCore.App without a PackageReference that ensures these assemblies are present as part of the application output, may see runtime errors. For instance, an application that uses reflection to access APIs from one of these assemblies without adding an explicit reference to these packages may see runtime errors
Version introduced
6.0
Old behavior
Applications could use APIs provided by these libraries by referencing the Microsoft.AspNetCore.App shared framework.
New behavior
PackageReference must be added to continue using these APIs.
Reason for change
Size reduction.
Recommended action
- Add a
PackageReference
to the affected project. For instance,
<PackageReference Include="System.Security.Permissions" Version="6.0.0" />
Category
ASP.NET
Affected APIs
- https://docs.microsoft.com/dotnet/api/system.security.permissions
- https://docs.microsoft.com/dotnet/api/system.media
- https://docs.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509certificate2ui
- https://docs.microsoft.com/dotnet/api/system.xaml.permissions.xamlaccesslevel
Issue metadata
- Issue type: breaking-change
Please use https://github.com/dotnet/aspnetcore/issues/31007 for questions and discussions.