Skip to content

Commit 5499a28

Browse files
Merge pull request #47398 from ShawnKupfer/WB1498
AB#1003041: Build your first web app with Blazor
2 parents f6cbdb4 + 93eb8bb commit 5499a28

13 files changed

+29
-27
lines changed

learn-pr/aspnetcore/build-your-first-blazor-web-app/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: Build your first web app with Blazor.
7-
ms.date: 01/26/2024
7+
ms.date: 10/09/2024
88
author: danroth27
99
ms.author: daroth
1010
ms.manager: markl

learn-pr/aspnetcore/build-your-first-blazor-web-app/2-configure-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Configure your development environment
44
metadata:
55
title: Configure your development environment
66
description: Learn how to set up your environment for Blazor development.
7-
ms.date: 01/26/2024
7+
ms.date: 10/09/2024
88
author: danroth27
99
ms.author: daroth
1010
ms.manager: markl

learn-pr/aspnetcore/build-your-first-blazor-web-app/3-exercise-configure-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Create and run a Blazor web app
44
metadata:
55
title: Exercise - Create and run a Blazor web app
66
description: Set up your environment for Blazor development and build your first Blazor web app.
7-
ms.date: 01/26/2024
7+
ms.date: 10/09/2024
88
author: danroth27
99
ms.author: daroth
1010
ms.manager: markl

learn-pr/aspnetcore/build-your-first-blazor-web-app/4-blazor-components.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Razor components
44
metadata:
55
title: Razor components
66
description: Learn what razor components are and how they can be shared across projects.
7-
ms.date: 01/26/2024
7+
ms.date: 10/09/2024
88
author: danroth27
99
ms.author: daroth
1010
ms.manager: markl

learn-pr/aspnetcore/build-your-first-blazor-web-app/5-exercise-add-component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Add a component
44
metadata:
55
title: Exercise - Add a component
66
description: Reuse components across pages of a Blazor web app and pass parameters in to modify behavior.
7-
ms.date: 01/26/2024
7+
ms.date: 10/09/2024
88
author: danroth27
99
ms.author: daroth
1010
ms.manager: markl

learn-pr/aspnetcore/build-your-first-blazor-web-app/6-knowledge-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Knowledge check
44
metadata:
55
title: Knowledge check
66
description: Check your knowledge about building and using Blazor components.
7-
ms.date: 01/26/2024
7+
ms.date: 10/09/2024
88
author: danroth27
99
ms.author: daroth
1010
ms.manager: markl

learn-pr/aspnetcore/build-your-first-blazor-web-app/7-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Summary
44
metadata:
55
title: Summary
66
description: Summary of building your first Blazor web app.
7-
ms.date: 01/26/2024
7+
ms.date: 10/09/2024
88
author: danroth27
99
ms.author: daroth
1010
ms.manager: markl
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Get ready to build your first Blazor web app! If you're looking to get started with web development using the power and flexibility of the .NET platform, then you're at the right place. Blazor is a modern frontend web framework based on HTML, CSS, and C# that helps you build web apps *fast*.
1+
Get ready to build your first Blazor web app! If you're looking to get started with web development using the power and flexibility of the .NET platform, then you're in the right place. Blazor is a modern frontend web framework based on HTML, CSS, and C# that helps you build web apps *fast*.
22

33
To get started building with Blazor, you first need to set up your development environment by installing the .NET SDK and a preferred code editor. You can then create your first Blazor web app project and start to learn the fundamentals of working with Blazor components.
44

5-
In this module, you'll learn everything you need to know to set up your .NET development environment and get your first Blazor created and running in just a few minutes. You'll learn how to create and use components, how to turn a component into a page, and how to do basic event handling and data binding. You'll then use everything you learned to build a basic to-do list app.
5+
In this module, you'll learn everything you need to know to set up your .NET development environment and get your first Blazor app created and running in just a few minutes. You'll learn how to create and use components, how to turn a component into a page, and how to do basic event handling and data binding. You'll then use everything you learned to build a basic to-do list app.
66

7-
By the end of this module you should have a working Blazor development environment, a basic understanding of Blazor components, and a running Blazor web app that you built yourself.
7+
By the end of this module, you should have a working Blazor development environment, a basic understanding of Blazor components, and a running Blazor web app that you built yourself.
88

99
Let's get started!

learn-pr/aspnetcore/build-your-first-blazor-web-app/includes/2-configure-environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ To get started with Blazor, you first need to install the .NET SDK and an approp
44

55
The .NET SDK is available for download from the [.NET website](https://dot.net). .NET provides installers and installation instructions for various different platforms and architectures. The .NET SDK includes the .NET runtime and tools for creating, building, running, publishing, and testing .NET projects. You can interact directly with the .NET SDK using the .NET command-line interface (CLI).
66

7-
The .NET SDK includes templates for creating different kinds of .NET projects. You create a new project using the `dotnet new <template-name>` command. For example, to create a new Blazor web app project you can run `dotnet new blazor`. Tools, like Visual Studio and Visual Studio Code, provide convenient user interfaces for creating .NET projects using the templates in the .NET SDK.
7+
The .NET SDK includes templates for creating different kinds of .NET projects. You create a new project using the `dotnet new <template-name>` command. For example, to create a new Blazor web app project, you can run `dotnet new blazor`. Tools like Visual Studio and Visual Studio Code provide convenient user interfaces for creating .NET projects using the templates in the .NET SDK.
88

9-
Once you create a new .NET project, you can build and run the project using the `dotnet build` and `dotnet run` commands. The `dotnet watch` command can be used to build and run a project and then automatically apply code changes as they're made. You can run and debug .NET projects from within Visual Studio and Visual Studio Code.
9+
Once you create a new .NET project, you can build and run the project using the `dotnet build` and `dotnet run` commands. You can use the `dotnet watch` command to build and run a project, then automatically apply code changes as they're made. You can run and debug .NET projects from within Visual Studio and Visual Studio Code.
1010

1111
## Blazor tooling
1212

learn-pr/aspnetcore/build-your-first-blazor-web-app/includes/3-exercise-configure-environment.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This module gives you the option to use the [.NET CLI](/dotnet/core/tools/), [Vi
1010

1111
To create a new Blazor web app project in Visual Studio Code with the C# Dev Kit:
1212

13-
1. Bring up the Command Palette using Ctrl+Shift+P and then type ".NET".
13+
1. Bring up the Command Palette using **Ctrl** + **Shift** + **P** and then type *.NET*.
1414

1515
1. Find and select the **.NET: New Project** command.
1616

@@ -20,7 +20,9 @@ To create a new Blazor web app project in Visual Studio Code with the C# Dev Kit
2020

2121
1. Name the project **BlazorApp** and press **Enter** to confirm.
2222

23-
1. View your new Blazor app project in the **Solution Explorer**.
23+
1. Select **Create Project**.
24+
25+
1. View your new Blazor app project in the **Explorer**.
2426

2527
## Optional: Create a new Blazor app with the .NET CLI
2628

@@ -91,7 +93,7 @@ To create a new Blazor web app using Visual Studio:
9193
9294
![Screenshot of Visual Studio 2022 'Configure Your Project' screen and recommended settings from step 3.](../media/visual-studio-2022-configure-project.png)
9395
94-
1. In the **Additional information** window, select **.NET 8.0 (Long Term Support)** in the **Framework** drop-down if not already selected and click the **Create** button.
96+
1. In the **Additional information** window, select **.NET 8.0 (Long Term Support)** in the **Framework** drop-down if not already selected and select the **Create** button.
9597
9698
When creating a Blazor Web App you can select from various options, like whether to enable authentication, what interactive render modes to enable, and how much of the app you want to be interactive. For this app, make sure the defaults are selected as follows:
9799
@@ -116,19 +118,19 @@ Several files were created to give you a simple Blazor app that is ready to run:
116118
117119
## Run the app
118120
119-
Click on the **Start Debugging** button (green arrow) in the Debug Toolbar in Visual Studio to run your app.
121+
Select the **Start Debugging** button (green arrow) in the Debug Toolbar in Visual Studio to run your app.
120122
121123
![Screenshot of the Debug Toolbar in Visual Studio with the Start Debugging button highlighted.](../media/click-debug-button.png)
122124
123-
Once the app is running, you can apply code changes to the running app by clicking the **Hot Reload** button.
125+
Once the app is running, you can apply code changes to the running app by selecting the **Hot Reload** button.
124126
125127
![Screenshot of the Debug Toolbar in Visual Studio with the Hot Reload button highlighted.](../media/hot-reload.png)
126128
127-
You can stop the app at any time by clicking on the **Stop** button in the top toolbar.
129+
You can stop the app at any time by selecting the **Stop** button in the top toolbar.
128130
129131
![Screenshot of the Debug Toolbar in Visual Studio with the Stop Debugging button highlighted.](../media/stop-debug.png)
130132
131-
The first time you run a web app in Visual Studio, it will set up a development certificate for hosting the app over HTTPS and then prompt you to trust the certificate. We recommend agreeing to trust the certificate. The certificate is only used for local development, and without it most browsers complain about the security of the website.
133+
The first time you run a web app in Visual Studio, it sets up a development certificate for hosting the app over HTTPS and then prompts you to trust the certificate. We recommend agreeing to trust the certificate. The certificate is only used for local development, and without it most browsers complain about the website's security.
132134
133135
Wait for the app to launch in the browser. Once you get to the following page, you've successfully run your first Blazor app!
134136

0 commit comments

Comments
 (0)