Visual Studio 2017 ASP. Net core development


Visual Studio 2017 ASP. Net core development, visual studio 2017 has built-in ASP Net core development tool

In the selection ASP. Net core function can be implemented after installation Net core development.

New ASP Net core project is csproj. When you open the previous xproj project, you will be prompted for one-way upgrade. After confirmation, you will be automatically upgraded to csproj.

New project

Vs 2017 new ASP Net core project:

After confirmation

Optional ASP Net core 1.0 and ASP Net core 1.1 and enable docker support.

The following is ASP Net core 1.1 enables docker to support project structure.

The project can run on docker. If you want to debug docker, you must install docker locally.

ASP. Net core 1.1 adds some new features. For example: WebSockets support.

Install Microsoft AspNetCore. WebSockets package, and then add in the configure method of startup class:


See the official documents for details:

. net core csproj support

In the csproj file of the project, you can notice that the reference of the project is greatly simplified.

Right click to edit csproj file:

<Project Sdk="Microsoft.NET.Sdk.Web">


 <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
 <PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
 <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
 <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
 <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
 <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
 <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" />


Packagereference is nuget package

Dotnetclitoolreference is an enhanced dotnet command line tool

Publish application

Right click the project, select publish, and then select folder

Click to publish as follows:

Specific settings can be made in the settings behind the target location.

Recommended visual studio 2017 extensions

Develop ASP Net core, the following two extensions are recommended:

Recommended nuget installation package for edited csproj files: Project File tools

ASP. Net core tag helpers smart tip: Razor language services

You can download and install according to the above address, or search for installation in tools – > extensions and updates:

Two more vs 2017 extensions are recommended below:

Web essentials web development tool:

Productivity power tools 2017 efficiency development:

Since vs2017 has just released its official version, there are still some problems.

You can go

If you encounter a problem, you can click on the top right to send a feedback report.

Reference documents:

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support developpaer.

Recommended Today

macOS ssh error: unable to negotiate with IP: no matching cipher

Environment: MacOS mojava version 10.14 After updating the Mac OS, the following error occurs when you use SSH to push the code to the server. ssh error: unable to negotiate with IP: no matching cipher found.Their offer: aes256-cbc,aes192-cbc,aes128-cbc…  Unable to negotiate with XX.X.X.XXX port XX: no matching cipher found. Their offer: aes256-cbc,aes192-cbc,aes128-cbc fatal: Could not […]