For test purposes I wrote an little ASP.NET Core Web API project, set the .csproj to contain this:
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeFrameworkVersion>2.0.0</RuntimeFrameworkVersion>
</PropertyGroup>
When I push this project to CF it installs "dotnet-framework 2.0.0" as it should, but in addition it tries to install "dotnet-framework 2.0.6" which is not available in the CloudFoundry environment I am using (MindSphere) and is therefore failing.
Why is CF trying to install multiple .NET Core versions? And where could that 2.0.6 come from or how to tell the CloudFoundry buildpack explicitly which version to use?