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: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Blazor Desktop allows you to create desktop apps using Blazor. Apps run inside o
10
10
The easiest way to get started with Blazor Desktop is to install the templates, you can do so using the dotnet cli as follows:
11
11
12
12
```powershell
13
-
dotnet new --install BlazorDesktop.Templates::1.0.4
13
+
dotnet new --install BlazorDesktop.Templates::1.0.5
14
14
```
15
15
16
16
Once you have the templates installed, you can either create a new project from the template either in Visual Studio in the template picker:
@@ -92,6 +92,11 @@ It is also possible to configure these values through `appsettings.json` like so
92
92
}
93
93
```
94
94
95
+
Blazor Desktop will automatically install WebView2 for the user if they do not already have it installed, you can disable this if you wish:
96
+
```csharp
97
+
builder.Window.UseWebView2Installer(false);
98
+
```
99
+
95
100
**The `Window` object itself is also made available inside of the DI container, so you can access all properties on it by using the inject Razor keyword or requesting it through the constructor of a class added as a service.**
0 commit comments