How to change target structure with VS 2017 RC?

How to change target structure with VS 2017 RC in new asp csproj projects?

I want to change after creating a project. There is no project.json file that was used for it in VS 2015. There are no other parameters in the project properties in the target "pull down" besides ".NETCoreApp 1.1" and ".NETCoreApp 1.0".

Details: I used yoman to create the SPA project: http://blog.stevensanderson.com/2016/05/02/angular2-react-knockout-apps-on-aspnet-core/

therefore, I was unable to select the .NET Framework during the creation of csproj. What will we do?

enter image description here

+7
asp.net-core
source share
1 answer

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).

+18
source share

All Articles