You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this 5-10 minute introduction to how to use Visual Studio, you'll create a simple "Hello World" web app by using an ASP.NET project template and the C# programming language.
24
24
25
+
## Before you begin
26
+
27
+
### Install Visual Studio
28
+
25
29
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
26
30
31
+
### Update Visual Studio
32
+
33
+
If you've already installed Visual Studio, make sure that you are running the most recent release. For more information about how to update your installation, see the [Update Visual Studio 2017 to the most recent release](../install/update-visual-studio.md) page.
34
+
35
+
### Choose your theme (optional)
36
+
37
+
This quickstart tutorial includes screenshots that use the dark theme. If you aren't using the dark theme but would like to, see the [Personalize the Visual Studio IDE and Editor](quickstart-personalize-the-ide.md) page to learn how.
38
+
27
39
## Create a project
28
40
29
-
First, you'll create an ASP.NET Core web application project. Here's how.
41
+
To start, you'll create an ASP.NET Core web application project. Here's how.
30
42
31
43
1. Open Visual Studio 2017.
32
44
33
45
1. From the top menu bar, choose **File** > **New** > **Project**.
34
46
35
47
1. In the left pane of the **New Project** dialog box, expand **Visual C#**, and then choose **.NET Core**. In the middle pane, choose **ASP.NET Core Web Application**. Then, name your file `HelloWorld` and choose **OK**.
36
48
37
-
1. In the **New ASP.NET Core Web Application** dialog box, verify that **ASP.NET Core 2.0** appears in the top drop-down menu. Then, choose **Web Application** and choose **OK**.
49
+
1. In the **New ASP.NET Core Web Application** dialog box, select **ASP.NET Core 2.0** or later from the top drop-down menu, and then select **Web Application**.
50
+
51
+
> [!NOTE]
52
+
> If you don't see **ASP.NET Core 2.0** or later from the top drop-down menu, make sure that you are running the most recent release of Visual Studio. For more information about how to update your installation, see the [Update Visual Studio 2017 to the most recent release](../install/update-visual-studio.md) page.
38
53
39
54

40
55
41
56
Soon after, Visual Studio opens your project file.
42
57
43
58
> [!NOTE]
44
-
> If you don't see the **.NET Core** project template category, choose the **Open Visual Studio Installer** link in the left pane.
59
+
> If you don't see the **.NET Core** project template category, choose the **Open Visual Studio Installer** link in the left pane. (Depending on your display settings, you might have to scroll to see it.)
45
60
>
46
61
> 
47
62
>
@@ -74,7 +89,7 @@ Next, you'll create and run your "Hello World" web app. Here's how.
74
89

75
90
76
91
> [!NOTE]
77
-
> If you get an error message that says, **Unable to connect to web server 'IIS Express'**, close Visual Studio and then open it by using the **Run as administrator** option from the right-click or context menu. Then, run the application again.
92
+
> If you get an error message that says, **Unable to connect to web server 'IIS Express'**, or an error message that mentions an SSL certificate, close Visual Studio. Next, open Visual Studio by using the **Run as administrator** option from the right-click or context menu. Then, run the application again.
78
93
79
94
1. In the web browser, verify that the **About** page includes your updated text.
In this 5-10 minute introduction to how to use Visual Studio, you'll create a simple "Hello World" web app by using an ASP.NET project template and the C# programming language.
24
24
25
+
## Before you begin
26
+
27
+
### Install Visual Studio
28
+
25
29
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
26
30
31
+
### Update Visual Studio
32
+
33
+
If you've already installed Visual Studio, make sure that you are running the most recent release. For more information about how to update your installation, see the [Update Visual Studio 2017 to the most recent release](../install/update-visual-studio.md) page.
34
+
35
+
### Choose your theme (optional)
36
+
37
+
This quickstart tutorial includes screenshots that use the dark theme. If you aren't using the dark theme but would like to, see the [Personalize the Visual Studio IDE and Editor](quickstart-personalize-the-ide.md) page to learn how.
38
+
27
39
## Create a project
28
40
29
-
First, you'll create an ASP.NET Core web application project. The project type comes with all template files to create a web app, before you've even added anything!
41
+
To start, you'll create an ASP.NET Core web application project. The project type comes with all template files to create a web app, before you've even added anything!
30
42
31
43
1. Open Visual Studio 2017.
32
44
@@ -37,7 +49,7 @@ First, you'll create an ASP.NET Core web application project. The project type c
37
49

38
50
39
51
> [!NOTE]
40
-
> If you don't see the **.NET Core** project template category, choose the **Open Visual Studio Installer** link in the left pane.
52
+
> If you don't see the **.NET Core** project template category, choose the **Open Visual Studio Installer** link in the left pane. (Depending on your display settings, you might have to scroll to see it.)
41
53
>
42
54
> 
43
55
>
@@ -47,7 +59,12 @@ First, you'll create an ASP.NET Core web application project. The project type c
47
59
>
48
60
> (You might have to close Visual Studio before you can continue installing the new workload.)
49
61
50
-
1. In the **New ASP.NET Core Web Application** dialog box, verify that **ASP.NET Core 2.0** appears in the top drop-down menu. Then, choose **Web Application** and choose **OK**.
62
+
1. In the **New ASP.NET Core Web Application** dialog box, select **ASP.NET Core 2.0** or later from the top drop-down menu.
63
+
64
+
> [!NOTE]
65
+
> If you don't see **ASP.NET Core 2.0** or later, make sure that you are running the most recent release of Visual Studio. For more information about how to update your installation, see the [Update Visual Studio 2017 to the most recent release](../install/update-visual-studio.md) page.
66
+
67
+
1. Next, choose **Web Application**, and then choose **OK**.
51
68
52
69

53
70
@@ -88,7 +105,7 @@ Soon after, Visual Studio opens your project file.
88
105
1. Press **Ctrl**+**F5** to run the app and open it in a web browser.
89
106
90
107
> [!NOTE]
91
-
> If you get an error message that says, **Unable to connect to web server 'IIS Express'**, close Visual Studio and then open it by using the **Run as administrator** option from the right-click or context menu. Then, run the application again.
108
+
> If you get an error message that says, **Unable to connect to web server 'IIS Express'**, or an error message that mentions an SSL certificate, close Visual Studio. Next, open Visual Studio by using the **Run as administrator** option from the right-click or context menu. Then, run the application again.
92
109
93
110
1. At the top of the web page, choose **About**.
94
111
@@ -111,4 +128,4 @@ To learn more, continue with the following tutorial:
111
128
112
129
## See also
113
130
114
-
[Publish your web app to Azure App Service by using Visual Studio](..//deployment/quickstart-deploy-to-azure.md)
131
+
[Publish your web app to Azure App Service by using Visual Studio](../deployment/quickstart-deploy-to-azure.md)
Copy file name to clipboardExpand all lines: docs/ide/tutorial-csharp-aspnet-core.md
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Get started with C# and ASP.NET Core in Visual Studio"
3
3
description: "Learn how to create an ASP.NET Core web app in Visual Studio with C#, step-by-step."
4
4
ms.custom: ""
5
-
ms.date: 09/17/2018
5
+
ms.date: 10/29/2018
6
6
ms.prod: visual-studio-dev15
7
7
ms.technology: vs-acquisition
8
8
ms.prod: visual-studio-dev15
@@ -21,8 +21,20 @@ ms.workload:
21
21
22
22
In this tutorial for C# development with ASP.NET Core using Visual Studio, you'll create a C# ASP.NET Core web app, make changes to it, explore some features of the IDE, and then run the app.
23
23
24
+
## Before you begin
25
+
26
+
### Install Visual Studio
27
+
24
28
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
25
29
30
+
### Update Visual Studio
31
+
32
+
If you've already installed Visual Studio, make sure that you are running the most recent release. For more information about how to update your installation, see the [Update Visual Studio 2017 to the most recent release](../install/update-visual-studio.md) page.
33
+
34
+
### Choose your theme (optional)
35
+
36
+
This tutorial includes screenshots that use the dark theme. If you aren't using the dark theme but would like to, see the [Personalize the Visual Studio IDE and Editor](quickstart-personalize-the-ide.md) page to learn how.
37
+
26
38
## Create a project
27
39
28
40
First, you'll create a ASP.NET Core project. The project type comes with all the template files you'll need for a fully functional website, before you've even added anything!
@@ -41,7 +53,7 @@ If you don't see the **ASP.NET Core Web Application** project template, you can
41
53
42
54
#### Option 1: Use the New Project dialog box
43
55
44
-
1. Select the **Open Visual Studio Installer** link in the left pane of the **New Project** dialog box.
56
+
1. Select the **Open Visual Studio Installer** link in the left pane of the **New Project** dialog box. (Depending on your display settings, you might have to scroll to see it.)
45
57
46
58

47
59
@@ -67,6 +79,9 @@ If you don't see the **ASP.NET Core Web Application** project template, you can
67
79
68
80

69
81
82
+
> [!NOTE]
83
+
> If you don't see **ASP.NET Core 2.0** or later from the top drop-down menu, make sure that you are running the most recent release of Visual Studio. For more information about how to update your installation, see the [Update Visual Studio 2017 to the most recent release](../install/update-visual-studio.md) page.
84
+
70
85
### About your solution
71
86
72
87
This solution follows the **Razor Page** design pattern. It is different than the [Model-View-Controller (MVC)](/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-2.1&tabs=aspnetcore2x) design pattern in that its streamlined to include the model and controller code within the Razor Page itself.
0 commit comments