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: aspnetcore/blazor/get-started.md
+41-15Lines changed: 41 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Get started with Blazor by building a Blazor app with the tooling o
5
5
monikerRange: '>= aspnetcore-3.1'
6
6
ms.author: riande
7
7
ms.custom: mvc
8
-
ms.date: 04/30/2020
8
+
ms.date: 05/02/2020
9
9
no-loc: [Blazor, SignalR]
10
10
uid: blazor/get-started
11
11
---
@@ -25,7 +25,7 @@ To get started with Blazor, follow the guidance for your choice of tooling:
25
25
26
26
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
27
27
28
-
1. Install the [Blazor WebAssembly](xref:blazor/hosting-models#blazor-webassembly) preview template by running the following command:
28
+
1. Install the Blazor WebAssembly Preview template by running the following command:
29
29
30
30
```dotnetcli
31
31
dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-rc1.20223.4
@@ -50,9 +50,11 @@ To get started with Blazor, follow the guidance for your choice of tooling:
50
50
```dotnetcli
51
51
dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-rc1.20223.4
52
52
```
53
+
54
+
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
53
55
54
56
> [!NOTE]
55
-
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview 4 Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
57
+
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
56
58
57
59
1. Install [Visual Studio Code](https://code.visualstudio.com/).
58
60
@@ -70,8 +72,6 @@ To get started with Blazor, follow the guidance for your choice of tooling:
70
72
dotnet new blazorwasm -o WebApplication1
71
73
```
72
74
73
-
For information on the two Blazor hosting models, *Blazor Server* and *Blazor WebAssembly*, see <xref:blazor/hosting-models>.
74
-
75
75
1. Open the *WebApplication1* folder in Visual Studio Code.
76
76
77
77
1. The IDE requests that you add assets to build and debug the project. Select **Yes**.
@@ -84,38 +84,66 @@ To get started with Blazor, follow the guidance for your choice of tooling:
84
84
85
85
# [Visual Studio for Mac](#tab/visual-studio-mac)
86
86
87
-
Blazor Server is supported in Visual Studio for Mac. Blazor WebAssembly isn't supported at this time. To build Blazor WebAssembly apps on macOS, follow the guidance on the **.NET Core CLI** tab.
87
+
Blazor Server is supported in Visual Studio for Mac. Blazor WebAssembly isn't supported at this time. To create Blazor WebAssembly apps on macOS, follow the guidance on the **.NET Core CLI** tab. For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
88
88
89
89
1. Install [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/).
90
90
91
-
1. Select **File** > **New Solution** or create a **New Project**.
91
+
1. Select **File** > **New Solution** or create a **New** project from the **Start Window**.
92
92
93
-
1. In the sidebar, select **Web and Console** > **App**.
93
+
1. In the sidebar, select **.NET Core** > **App**.
94
94
95
95
1. Select the **Blazor Server App** template. Select **Next**.
96
96
97
-
For information on the Blazor Server hosting model, see <xref:blazor/hosting-models>.
97
+
1. Confirm the following configurations:
98
98
99
-
1. Confirm that the **Target Framework** is set to **.NET Core 3.1** and select **Next**.
99
+
***Target Framework** set to **.NET Core 3.1**.
100
+
***Authentication** set to **No Authentication**.
101
+
102
+
Select **Next**.
100
103
101
104
1. In the **Project Name** field, name the app `WebApplication1`. Select **Create**.
102
105
103
-
1. Select **Run** > **Run Without Debugging** to run the app *without the debugger*. Run the app with **Start Debugging** or the Run (▶) button to run the app *with the debugger*.
106
+
1. Select **Run** > **Start Without Debugging** to run the app *without the debugger*. Debugging isn't supported at this time.
107
+
108
+
<!-- HOLD FOR 8.6 GA
109
+
110
+
1. Select **File** > **New Solution** or create a **New** project from the **Start Window**.
111
+
112
+
1. In the sidebar, select **Web and Console** > **App**.
113
+
114
+
1. For a Blazor WebAssembly experience, choose the **Blazor WebAssembly App** template. For a Blazor Server experience, choose the **Blazor Server App** template. Select **Next**.
115
+
116
+
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
117
+
118
+
1. Confirm the following configurations:
119
+
120
+
* **Target Framework** set to **.NET Core 3.1**.
121
+
* **Authentication** set to **No Authentication**.
122
+
123
+
Select **Next**.
124
+
125
+
1. In the **Project Name** field, name the app `WebApplication1`. Select **Create**.
126
+
127
+
1. Select **Run** > **Start Without Debugging** to run the app *without the debugger*. Run the app with **Run** > **Start Debugging** or the Run (▶) button to run the app *with the debugger*.
128
+
129
+
-->
104
130
105
131
If a prompt appears to trust the development certificate, trust the certificate and continue. The user and keychain passwords are required to trust the certificate.
106
132
107
133
# [.NET Core CLI](#tab/netcore-cli/)
108
134
109
135
1. Install the [.NET Core 3.1 SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1).
110
136
111
-
1. Optionally install the [Blazor WebAssembly](xref:blazor/hosting-models#blazor-webassembly) preview template by running the following command:
137
+
1. Optionally install the Blazor WebAssembly preview template by running the following command:
112
138
113
139
```dotnetcli
114
140
dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-rc1.20223.4
115
141
```
142
+
143
+
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
116
144
117
145
> [!NOTE]
118
-
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview 4 Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
146
+
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
119
147
120
148
1. For a Blazor Server experience, execute the following commands in a command shell:
121
149
@@ -133,8 +161,6 @@ If a prompt appears to trust the development certificate, trust the certificate
133
161
dotnet run
134
162
```
135
163
136
-
For information on the two Blazor hosting models, *Blazor Server* and *Blazor WebAssembly*, see <xref:blazor/hosting-models>.
137
-
138
164
1. In a browser, navigate to `https://localhost:5001`.
0 commit comments