aspnetcore/docs/SharedFramework.md

2.2 KiB

ASP.NET Core Shared Framework

Guidance on developing the ASP.NET Core shared framework (Microsoft.AspNetCore.App).

What goes into the shared framework?

The ASP.NET Core shared framework contains assemblies that are fully developed, supported, and serviceable by Microsoft. You can think of this as constituting the ASP.NET Core platform. As such, all assemblies which are included in the shared framework are expected to meet specific requirements. Here are the principles we are using to guide our decisions about what is allowed in the shared framework.

  • Breaking changes are highly discouraged. Therefore,
    • If it's in, it must be broadly useful and expected to be supported for at least several years.
    • The API for all assemblies in shared framework MUST NOT make breaking changes in patch or minor releases.
  • The complete closure of all assemblies must be in the shared framework, or must be in the "base framework", Microsoft.NETCore.App
  • No 3rd party dependencies. All packages must be fully serviceable by Microsoft.
  • Teams which own components in the shared framework must coordinate security fixes, patches, and updates with the .NET Core team.
  • Code must be open-source and buildable using only open-source tools
  • Usage
  • How much an API is used is an important metric, but not the only factor
    • API we believe is essential for central experiences in .NET Core should be in the shared framework
    • Examples of central experiences: MVC, Kestrel, Razor, SignalR
  • New API can ship as out-of-band packages first, and move into the base framework later when it meets these standards

How to adjust what is in the shared framework

The contents of the shared framework are defined in two ways:

  • eng/SharedFramework.Local.props - this file is generated from the .csproj files in this repo by looking for projects which have set <IsAspNetCoreApp>true</IsAspNetCoreApp>. Run ./eng/scripts/GenerateProjectList.ps1 to update.
  • eng/SharedFramework.External.props - this file lists all assemblies shipped in Microsoft.AspNetCore.App which are built by source code found in other repositories.