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
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*.
2
2
3
3
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.
4
4
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.
6
6
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.
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/build-your-first-blazor-web-app/includes/2-configure-environment.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ To get started with Blazor, you first need to install the .NET SDK and an approp
4
4
5
5
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).
6
6
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.
8
8
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.
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/build-your-first-blazor-web-app/includes/3-exercise-configure-environment.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This module gives you the option to use the [.NET CLI](/dotnet/core/tools/), [Vi
10
10
11
11
To create a new Blazor web app project in Visual Studio Code with the C# Dev Kit:
12
12
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*.
14
14
15
15
1. Find and select the **.NET: New Project** command.
16
16
@@ -20,7 +20,9 @@ To create a new Blazor web app project in Visual Studio Code with the C# Dev Kit
20
20
21
21
1. Name the project **BlazorApp** and press **Enter** to confirm.
22
22
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**.
24
26
25
27
## Optional: Create a new Blazor app with the .NET CLI
26
28
@@ -91,7 +93,7 @@ To create a new Blazor web app using Visual Studio:
91
93
92
94

93
95
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.
95
97
96
98
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:
97
99
@@ -116,19 +118,19 @@ Several files were created to give you a simple Blazor app that is ready to run:
116
118
117
119
## Run the app
118
120
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.
120
122
121
123

122
124
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.
124
126
125
127

126
128
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.
128
130
129
131

130
132
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.
132
134
133
135
Wait for the app to launch in the browser. Once you get to the following page, you've successfully run your first Blazor app!
0 commit comments