Skip to content

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

Open
@pranavkm

Description

@pranavkm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.0.0Breaking changeDocumentedThe breaking change has been published to the .NET Core docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions