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

Getting started with ASP.NET Core MVC and Visual Studio for Mac

By Rick Anderson

This tutorial teaches you the basics of building an ASP.NET Core MVC web app using Visual Studio for Mac.

[!INCLUDEconsider RP]

There are 3 versions of this tutorial:

Prerequisites

This tutorial requires the .NET Core 2.0.0 SDK or later.

Install the following:

Create a web app

From Visual Studio, select File > New Solution.

macOS New solution
macOS New solution

Select .NET Core App > ASP.NET Core > Web App > Next.

macOS New project dialog
macOS New project dialog

Name the project MvcMovie, and then select Create.

macOS New project dialog
macOS New project dialog

Launch the app

In Visual Studio, select Run > Start Without Debugging to launch the app. Visual Studio starts (xref:)Kestrel, launches a browser, and navigates to http://localhost:port, where port is a randomly chosen port number.

Browser with new project
Browser with new project

The default template gives you 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.

Browser with New project
Browser with New project

In the next part of this tutorial, you 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-mac/start-mvc.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>