Modify the csproj file as follows:
<TargetFramework>netcoreapp1.1</TargetFramework>
replaced by:
<TargetFramework>net462</TargetFramework> <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
and delete:
<PackageReference Include="Microsoft.NETCore.App" Version="1.1.0" />
Then
dotnet restore dotnet build dotnet run
Do not start dotnet run from the package manager console. It will work, but it will not be possible to cancel the server using (ctrl c).
If VS F5 does not work (true for VS 2017 RC, the main services generated with yoman templates), then change:
<OutputType>winexe</OutputType>
to
<OutputType>Exe</OutputType>
and restart VS, rebuild is not enough (to enable F5, true for VS 2017 RC).
Roman pokrovskij
source share