Skip to content

Commit 4878893

Browse files
authored
Merge pull request #5762 from MicrosoftDocs/cxwtool-15962
Merge master into release-16.4
2 parents 2e5d48f + 6c5a6ab commit 4878893

7 files changed

+38
-1
lines changed
Loading
Loading
Loading
Loading
Loading
Loading

docs/ide/quickstart-aspnet-core.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Create an ASP.NET Core web app in C#"
33
description: "Learn how to create a simple Hello World web app in Visual Studio with C# and ASP.NET Core, step-by-step."
44
ms.custom: "mvc,seodec18"
5-
ms.date: 10/15/2019
5+
ms.date: 11/06/2019
66
ms.technology: vs-ide-general
77
ms.prod: visual-studio-windows
88
ms.topic: quickstart
@@ -114,6 +114,8 @@ Soon after, Visual Studio opens your project file.
114114

115115
## Create and run the app
116116

117+
::: moniker range="vs-2017"
118+
117119
1. In the **Solution Explorer**, expand the **Pages** folder, and then choose **About.cshtml**.
118120

119121
![Choose the About.cshtml file from the Solution Explorer](../ide/media/csharp-aspnet-about-page-html-file.png)
@@ -163,6 +165,41 @@ View the following animation to check the work that you completed in the previou
163165

164166
Congratulations on completing this Quickstart! We hope you learned a little bit about C#, ASP.NET Core, and the Visual Studio IDE (integrated development environment).
165167

168+
::: moniker-end
169+
170+
::: moniker range="vs-2019"
171+
172+
1. In the **Solution Explorer**, expand the **Pages** folder, and then choose **Index.cshtml**.
173+
174+
![Choose the Index.cshtml file from the Solution Explorer](../ide/media/vs-2019/csharp-aspnet-index-page-cshtml-file.png)
175+
176+
This file corresponds to a page that's named **Home** in the web app, which runs in a web browser.
177+
178+
![The About page in the web app](../ide/media/vs-2019/csharp-aspnet-index-page.png)
179+
180+
In the editor, you'll see HTML code for the text that appears on the **Home** page.
181+
182+
![The HTML code in the Index.cshtml file for the Home page in the Visual Studio editor](../ide/media/vs-2019/csharp-aspnet-index-cshtml-page.png)
183+
184+
1. Change the "Welcome" text to read "**Hello World!**".
185+
186+
![In the Visual Studio editor, change the default HTML code that says Welcome to say Hello World instead](../ide/media/vs-2019/csharp-aspnet-index-cshtml-page-hello-world.png)
187+
188+
1. Choose **IIS Express** or press **Ctrl**+**F5** to run the app and open it in a web browser.
189+
190+
![Select the IIS Express button in Visual Studio](../ide/media/vs-2019/csharp-aspnet-generic-iisbutton.png)
191+
192+
> [!NOTE]
193+
> 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 context menu. Then, run the application again.
194+
195+
1. In the web browser, verify that the **Home** page includes your updated text.
196+
197+
![View the updated Home page that includes the changes you made](../ide/media/vs-2019/csharp-aspnet-index-page-hello-world.png)
198+
199+
1. Close the web browser.
200+
201+
::: moniker-end
202+
166203
## Next steps
167204

168205
To learn more, continue with the following tutorial:

0 commit comments

Comments
 (0)