mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-14 21:32:52 +00:00
Dynamically detect the RuntimeIdentifier #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qmfrederik on GitHub (Sep 26, 2017).
Currently we require everyone to specify the RuntimeIdentifier when creating, for example, RPM packages.
We do so because we currently create self-contained applications (SPAs) which include the .NET Core runtime. Additionally, projects may take on 3rd party dependencies which contain native code; we also need to make sure we include the native dependencies for the correct runtime.
We may be able to loosen the requirement somewhat, though. The
.csprojfile already contains a list of target runtimes. If there's only one target runtime, or only one target runtime that makes sense for the package format, we should be able to infer that one.@qmfrederik commented on GitHub (Sep 26, 2017):
/cc @tmds split off from #6
@qmfrederik commented on GitHub (Nov 22, 2019):
With #125, you no longer need to specify a
--runtime. The default runtime from the.csprojwill be used. If no runtime is set, you'll end up with a framework-dependent package.