runtime: Host packages should not use runtime.json restore infrastructure
The host packages still use runtime.json which was the mechanism to define RID based package dependencies in the .NET Core 2.x era. That feature was never publicly exposed by NuGet and is discussed to be removed in NET 6. For more details see https://github.com/NuGet/Home/issues/5862.
There are alternatives to runtime.json, i.e.:
- KnownFrameworkPackage with known RIDs
- A single package with multiple RID based folders (bigger package, but easier to maintain)
- Dead ending the package if it isn’t supposed to be used anymore.
dotnet/sdk still consumes the meta package via the runtime.json mechanism which should be considered when switching to a different restore mechanism.
Host packages:
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 16 (14 by maintainers)
Commits related to this issue
- Fixup native chrome lookup for installed tool scenario It is unfortunately not possible to conditionally reference native assets depending on the installed tool's runtime platform. This means we need... — committed to devlooped/chromium by kzu 4 years ago
- Fixup native chrome lookup for installed tool scenario It is unfortunately not possible to conditionally reference native assets depending on the installed tool's runtime platform. This means we need... — committed to devlooped/chromium by kzu 4 years ago
Not suggesting a join. Suggesting meta-package that “knows” the id’s and versions of child packages. Essentially same as we do today but put the dependencies in nuspec instead of runtime.json.
cc @elinor-fung, @agocke
With https://github.com/dotnet/runtime/commit/f76045c2116ca5a723b63575c0fb7845d5f9e65f, the remaining host package that still uses the runtime.json infrastructure is
Microsoft.NETCore.DotNetAppHost.Related: https://github.com/dotnet/runtime/issues/49233, https://github.com/dotnet/runtime/issues/75966
Unfortunately another package got added into the installer/pkg umbrella which depends on this infra: https://github.com/dotnet/runtime/tree/main/src/installer/pkg/projects/Microsoft.DotNet.ILCompiler.
After both projects got converted to NuGet Pack task based ones, we will finally be able to delete all the ancient infrastructure around supporting runtime.json based packages under src/installer.
The single-package option will require us to add another “join” job like the CrossOS DAC job to get all the artifacts in one place.