Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SharedFramework.md « docs - github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7c6fe0303cbe6cfbc3e142f97b6fd7b729aa4fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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](/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](/eng/SharedFramework.External.props) - this file lists all assemblies shipped
  in Microsoft.AspNetCore.App which are built by source code found in other repositories.