"
 
 
 
ASP.NET (snapshot 2017) Microsoft documentation and samples

Getting started with ASP.NET Core MVC and Visual Studio

By Rick Anderson

[!INCLUDEconsider RP]

There are 3 versions of this tutorial:

Install Visual Studio and .NET Core

ASP.NET Core 2.x

[!INCLUDEinstall 2.0]

ASP.NET Core 1.x

Install Visual Studio Community 2017. Select the Community download. Skip this step if you have Visual Studio 2017 installed.

Run the installer and select the following workloads:

ASP.NET and web development (under Web & Cloud)
ASP.NET and web development (under Web & Cloud)
.NET Core cross-cross-platfrom development (under Other Toolsets)
.NET Core cross-cross-platfrom development (under Other Toolsets)

Create a web app

From Visual Studio, select File > New > Project.

File > New > Project
File > New > Project

Complete the New Project dialog:

New project dialog, .Net core in left pane, ASP.NET Core web
New project dialog, .Net core in left pane, ASP.NET Core web

ASP.NET Core 2.x

Complete the New ASP.NET Core Web Application (.NET Core) - MvcMovie dialog:

New project dialog, .Net core in left pane, ASP.NET Core web
New project dialog, .Net core in left pane, ASP.NET Core web

ASP.NET Core 1.x

Complete the New ASP.NET Core Web Application (.NET Core) - MvcMovie dialog:

New ASP.NET Core web app
New ASP.NET Core web app

Visual Studio used a default template for the MVC project you just created. You have a working app right now by entering a project name and selecting a few options. This is a simple starter project, and it’s a good place to start,

Tap F5 to run the app in debug mode or Ctrl-F5 in non-debug mode. running app

Debug menu
Debug menu
IIS Express
IIS Express

The default template gives you working Home, About and Contact links. The browser image above doesn’t show these links. Depending on the size of your browser, you might need to click the navigation icon to show them.

navigation icon in upper right
navigation icon in upper right

If you were running in debug mode, tap Shift-F5 to stop debugging.

In the next part of this tutorial, we’ll learn about MVC and start writing some code.

Next





Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnetcore/tutorials/first-mvc-app/start-mvc.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>