aspnet / Announcements

Subscribe to this repo to be notified about major changes in ASP.NET Core and Entity Framework Core
Other
1.66k stars 80 forks source link

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

Open pranavkm opened 3 years ago

pranavkm commented 3 years ago

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:

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:

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

pranavkm commented 3 years ago

Please use https://github.com/dotnet/aspnetcore/issues/31007 for questions and discussions.