Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assemblies removed from Microsoft.AspNetCore.App shared framework #456

Open
pranavkm opened this issue Mar 17, 2021 · 1 comment
Open

Assemblies removed from Microsoft.AspNetCore.App shared framework #456

pranavkm opened this issue Mar 17, 2021 · 1 comment
Labels
6.0.0 Breaking change Documented The breaking change has been published to the .NET Core docs

Comments

@pranavkm
Copy link
Contributor

pranavkm commented Mar 17, 2021

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

  1. Add a PackageReference to the affected project. For instance,
<PackageReference Include="System.Security.Permissions" Version="6.0.0" />

Category

ASP.NET

Affected APIs


Issue metadata

  • Issue type: breaking-change
@pranavkm
Copy link
Contributor Author

Please use dotnet/aspnetcore#31007 for questions and discussions.

@aspnet aspnet locked and limited conversation to collaborators Mar 17, 2021
@Rick-Anderson Rick-Anderson added the Documented The breaking change has been published to the .NET Core docs label Apr 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
6.0.0 Breaking change Documented The breaking change has been published to the .NET Core docs
Projects
None yet
Development

No branches or pull requests

2 participants