I'm using the newest .NET SDK just released the other day (1.0.1, installed from https://dotnetcli.blob.core.windows.net/dotnet/Sdk/1.0.1/dotnet-dev-debian-x64.1.0.1.tar.gz) to build projects with "dotnet publish." For reasons outside of the scope of this question, I am trying to build applications so that they run on slightly older versions of the framework (1.0.3 and 1.1.0, as opposed to the newest 1.0.4 and 1.1.0).
If I build a project that specifies <TargetFramework>netcoreapp1.1</TargetFramework>
, it won't run on a platform that only has version 1.1.0 installed.
It looks like I can specify <RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion>
in my csproj on a per-project basis, but is there any way I can configure dotnet such that targeting netcoreapp1.1
targets 1.1.0 by default?