is utilised by NuGet to resolve dependencies and choose the assets that will be used for the application's compilation and construction. (In the background, other attributes such
come into play, but the SDK simplifies it by abstracting it.
for frameworks that it is aware of).
is particular to.NET Core/
A reliance on will be injected by the SDK.
because of the version
is configured to utilise or set to the most recent version of.NET Core 2.0 it is aware of. It then writes the resolved version to the
file that the.NET Core host framework resolver may use to determine the shared framework version to load (for example,.NET Core 1.1.4 runtime).
The cause of your ability to utilise
is because the tools required to create.NET Core 1.0.* apps are included in the NuGet package. Because the tooling is unaware of this, you will get a.NET Core 1.0 application, but the 1.1 framework will be used to load it.
The key distinction is:
dotnet publish -r win7-x64)
1.0.3nevertheless you possess the
1.0.5installed runtime, the
1.0.5Runtime will automatically be employed.
RuntimeFrameworkVersionWhen a new version of the SDK is published that is aware of updated patches for.NET Core, it will automatically utilise the most recent version. If you specifically specify the version, you could not be current without changing the project file.
RuntimeFrameworkVersionis also the minimal runtime that, if set to, the programme will load
1.0.4and attempt to run on a device with merely
1.0.3the programme won't launch after installation until you modify the
RuntimeFrameworkVersionmay be set to a floating version, ideal for targeting daily builds or preview versions, for example.
2.1.0-preview1-*would arrive at the most recent
preview1version accessible through the set up NuGet feeds.
Other than this, there are only a few justifications for building using a more advanced version of
, such as a workaround for a build problem in
Version 2.0 of.NET Core is
is and always
since the dependencies of "portable programmes" (non-self contained) no longer offer the framework's implementation
and this NuGet package is exclusively used to provide compilation-related reference assemblies.