In Win10, VS2015 creates an ASP. NET Core project and runs
As mentioned above. NET Core program running in Win10 and Ubuntu (SEE), using the sample program (https://github.com/aspnet/cli-samples), today using vs2015 to build ASP.. NET Core MVC sample program and run it in Ubuntu.
First, you need to download the following environment and software as to whether to download 32-bit or 64-bit based on your system. This article is based on 64-bit.
1. NET Core SDK (running environment + command line interface) Address: https://go.microsoft.com/fwlink? LinkID = 798398
2 Visual Studio Community 2015 Update2 (vs2015): https://www.visualstudio.com/products/visual-studio-community-vs
3. NET Core Tooling Preview 1 for Visual Studio 2015 (. net core template): https://go.microsoft.com/fwlink? LinkId = 798481
For example, install the third template Tool
After installing and enabling vs, you will see the following. net core-related templates, which are purely running on.. net core.. net framework (version 4.6 or later.
Next, create an asp.net core mvc project.
The dependency package is automatically downloaded when the project is saved.
There are two running Modes in Windows: Self-bearing and iisexpress.
The browser automatically opens. Your default value is localhost: 5000.
You can customize ports in the Self-bearing mode. If I have defined two ports as follows, the default port 5000 is not set;
If you use the iisexpress settings, it cannot run here.
Run in ubuntu
1. Release asp.net core mvc project with
Copy the mvc project in publishoutput to ubuntu as follows:
Install dotnet sdk under ubuntu reference https://www.microsoft.com/net/core#ubuntu if there is a dotnet environment to run dotnet your application. dll as follows, port is 5000 by default
You can run the. NET Core SDK without installing it. For example, run the following command to publish dotnet publish-r ubuntu.14.04-x64, see