sdk
sdk copied to clipboard
AppHost selection doesn't work well with DisableImplicitFrameworkReferences or RuntimeFrameworkVersion
There are a couple of issues with app host selection:
- Some projects use
DisableImplicitFrameworkReferences
to disable any package references, downloads, etc. that aren't explicitly specified. In some cases this is used for a "restore-only" project that simply downloads a package. It would be expected that theDisableImplicitFrameworkReferences
property would stop an AppHost pack from being downloaded, but currently it doesn't. This can lead to problems with package downgrades, or where an app host can't be found for the specified RID. -
RuntimeFrameworkVersion
can be specified as metadata on aFrameworkReference
. However, there's no way to do the same thing for the AppHost pack (besides specifying theRuntimeFrameworkVersion
property which applies to all shared frameworks. This makes it difficult to consume a specific build of .NET Core.
related https://github.com/dotnet/cli/issues/11194