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
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/build-your-first-aspnet-core-web-app/includes/3-exercise-create-project.md
+44-8Lines changed: 44 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,11 @@ In Visual Studio Code, create a new project:
11
11
12
12
1. Select the **Explorer** view:
13
13
14
-
:::image type="content" source="../media/vsc-select-explorer.png" alt-text="Selecting the Explorer view":::
14
+
:::image type="content" source="../media/vs-code-select-explorer.png" alt-text="Screenshot of selecting the Explorer view":::
15
15
16
16
1. Select the **Create .NET Project** button. Alternatively, you can bring up the **Command Palette** using <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>, and then type "`.NET`" to find and select the **.NET: New Project** command.
:::image type="content" source="../media/vs-code-select-create-dotnet-project.png" alt-text="Screenshot of selecting Create .NET Project":::
19
19
20
20
1. Select the **ASP.NET Core Empty** project template from the list.
21
21
1. In the **Project Location** dialog, create a folder named `MyWebApp` to contain the project.
@@ -26,7 +26,7 @@ In Visual Studio Code, create a new project:
26
26
27
27
The *MyWebApp* project folder contents are displayed in the Visual Studio Code **Explorer**:
28
28
29
-
:::image type="content" source="../media/vsc-explorer-project-files.png" alt-text="The project files in the Visual Studio Code Explorer":::
29
+
:::image type="content" source="../media/vs-code-explorer-project-files.png" alt-text="Screenshot of the project files in the Visual Studio Code Explorer":::
30
30
31
31
::: zone-end
32
32
@@ -62,7 +62,7 @@ From a terminal or the command line, create a new project:
62
62
63
63
The *MyWebApp* project folder contents are displayed in the Visual Studio Code **Explorer**:
64
64
65
-
:::image type="content" source="../media/vsc-explorer-project-files.png" alt-text="The project files in the Visual Studio Code Explorer":::
65
+
:::image type="content" source="../media/vs-code-explorer-project-files.png" alt-text="Screenshot of the project files in the Visual Studio Code Explorer":::
66
66
67
67
::: zone-end
68
68
@@ -97,7 +97,31 @@ The *Properties/launchSettings.json* file contains configuration data for how th
97
97
98
98
The *launchSettings.json* file contains the following configuration:
`app.MapGet("/")`: Defines a route for the HTTP GET request. The `/` indicates this route responds to the requests made to the root URL of the app. For example, `http://localhost:{port}/`, where `{port}` is a randomly assigned port number assigned in the *Properties/launchSettings.json* file at project creation.
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/build-your-first-aspnet-core-web-app/includes/4-exercise-run-project.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,13 @@ Run the web app in Visual Studio Code and view in a browser:
21
21
22
22
1. At the **Select debugger** prompt in the **Command Palette** at the top of the Visual Studio Code UI, select **C#**. At the next prompt, select the default launch configuration (`C#: MyWebApp [Default Configuration]`):
23
23
24
-
:::image type="content" source="../media/vsc-select-bebugger.png" alt-text="Chosing Select debugger in the Command Pallette":::
24
+
:::image type="content" source="../media/vs-code-select-debugger.png" alt-text="Screenshot of choosing Select debugger in the Command Pallette":::
25
25
26
26
The default browser is launched at `http://localhost:{PORT}`, which displays the app's response. The `{PORT}` placeholder is the random port assigned to the app when the app's project is created. If you need to change the port due to a local port conflict, change the port in the project's *Properties/launchSettings.json* file.
27
27
28
28
The response displayed in the browser:
29
29
30
-
:::image type="content" source="../media/browser-displays-helloworld.png" alt-text="A browser displaying the text output":::
30
+
:::image type="content" source="../media/browser-displays-hello-world.png" alt-text="Screenshot of a browser displaying the text output":::
31
31
32
32
1. Close the browser window.
33
33
@@ -65,7 +65,7 @@ Run the web app using the .NET CLI:
65
65
66
66
1. Open a browser to the URL generated at your own command line output, the app's response `Hello World!` is displayed:
67
67
68
-
:::image type="content" source="../media/browser-displays-helloworld.png" alt-text="A browser displaying the text output":::
68
+
:::image type="content" source="../media/browser-displays-hello-world.png" alt-text="Screenshot of a browser displaying the text output":::
69
69
70
70
1. Press Ctrl+C at the command line to shut down the app.
0 commit comments