In Win10, VS2015 creates an ASP. NET Core project and runs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.