Skip to content

Adhere to the package support policy by building and packaging supported frameworks only #53282

Closed
@ViktorHofer

Description

@ViktorHofer

Continuation of #47530

The runtime repository currently produces 102 packages from libraries of which 25 of those contain assets which will be unsupported when we release .NET 6 in November 2021. The list of unsupported assets includes netstandard1.x assets as those apply to unsupported application frameworks only as in any case where a netstandard1.x asset is present, a netstandard2.0 (and in most cases a net461 asset) exists as well which allows to run on .NET Framework 4.6.1 or .NET Core 3.1 and above.

The reasons for trimming out unsupported assets are:

  • Simplified build graph and reduced build times
  • Less restore size as the NS1.x dependency graph doesn't need to be restored
  • Package validation costs
  • Fat packages
  • Maintenance of code bases which are not tested anymore.

Based on these disadvantages we will remove the remaining unsupported assets from packages in dotnet/runtime.

List of packages grouped by TargetFrameworkIdentifier

NETStandard,Version=1.x -> .NETStandard,Version=2.0

  • Microsoft.Extensions.HostFactoryResolver.Sources
  • System.Collections.Immutable
  • System.Diagnostics.DiagnosticSource
  • System.IO.Packaging
  • System.Numerics.Tensors
  • System.Reflection.Context
  • System.Reflection.Metadata
  • System.Runtime.CompilerServices.Unsafe
  • System.Threading.Channels
  • System.Threading.Tasks.Dataflow

PR: #53283

NETCoreApp,Version=2.x|3.0 -> .NETCoreApp,Version=3.1

  • Microsoft.Win32.SystemEvents
  • System.Data.Odbc
  • System.Diagnostics.EventLog
  • System.ComponentModel.Composition
  • System.Diagnostics.PerformanceCounter
  • System.DirectoryServices
  • System.DirectoryServices.AccountManagement
  • System.DirectoryServices.Protocols
  • System.Management
  • System.Runtime.CompilerServices.Unsafe
  • System.Security.Principal.Windows
  • System.Speech
  • System.Text.Encoding.CodePages
  • System.Threading.Channels

PR: #53358

NETFramework,Version=4.5|4.5.1|4.6 -> .NETFramework.Version=4.6.1

  • System.Diagnostics.DiagnosticSource
  • System.Runtime.CompilerServices.Unsafe
  • System.IO.Packaging
  • System.ComponentModel.Composition.Registration
  • System.ComponentModel.Composition
  • System.DirectoryServices
  • System.DirectoryServices.AccountManagement
  • System.DirectoryServices.Protocols
  • System.IO.Packaging
  • System.Management
  • System.Reflection.Context
  • System.Runtime.Caching
  • System.Speech

PR: #53319

cc @danmoseley @ericstj @terrajobst @Anipik

Metadata

Metadata

Assignees

Labels

area-Infrastructure-librariesbreaking-changeIssue or PR that represents a breaking API or functional change over a prerelease.needs-breaking-change-doc-createdBreaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions