To configure asp.net-core project to use "framework" target (net462) it is required to delete package from csproj file:
<PackageReference Include="Microsoft.NETCore.App" Version="1.1.0" />
Because it is for "Core" platform only.
May be because of this Visual Studio F5 button (Run) stopped working:
Is it possible to "reintegrate" asp.core targeted to net462 with Visual Studio?
ToolsVersion problem:
One question aside, what we should know about ToolsVersion from <Project Sdk="Microsoft.NET.Sdk.Web" ToolsVersion="15.0">
? Till that moment I thought that we should worry about dotnet -v
(aka tooling version). How to know which sdk's "ToolsVersion" is the last and which is actually installed on developer's computer?
Reproducing
I can't reproduce it with VS default ASP.CORE projects. It is happens only with Spa Services projects.
Microsoft.NETCore.App
is only for .NET Core. You have to remove it for full .NET Framework applications, it is only a meta package for portalble .NET Core apps anyways – Tseng