Skip to content

Commit 74e68b7

Browse files
chore: update README.md
1 parent dea53e0 commit 74e68b7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Blazor Desktop
66
Blazor Desktop allows you to create desktop apps using Blazor. Apps run inside of a .NET generic host with a WPF window thats fully managed using a similar template to Blazor WASM.
7-
![app](https://user-images.githubusercontent.com/2308261/153133429-7e1cdebd-72d0-4d61-91d9-eb14089cf9fc.png)
7+
![app](https://user-images.githubusercontent.com/2308261/212734109-a405ebe1-bd39-495b-b663-b8522b88f36c.png)
88

99
# Getting Started
1010
The easiest way to get started with Blazor Desktop is to install the templates, you can do so using the dotnet cli as follows:
@@ -25,12 +25,15 @@ dotnet new blazordesktop -n MyBlazorApp
2525
The Blazor Desktop template is set up very similar to the Blazor WASM template, you can see the `Program.cs` file here:
2626

2727
```csharp
28+
using BlazorDesktop.Hosting;
2829
using HelloWorld;
2930
using HelloWorld.Data;
30-
using BlazorDesktop.Hosting;
3131
using Microsoft.AspNetCore.Components.Web;
3232

3333
var builder = BlazorDesktopHostBuilder.CreateDefault(args);
34+
35+
builder.UseWebViewInstaller();
36+
3437
builder.RootComponents.Add<App>("#app");
3538
builder.RootComponents.Add<HeadOutlet>("head::after");
3639

@@ -58,7 +61,8 @@ builder.Window.UseTitle("Hello");
5861

5962
Window size:
6063
```csharp
61-
builder.Window.UseWidth(1920)
64+
builder.Window
65+
.UseWidth(1920)
6266
.UseHeight(1080);
6367
```
6468

@@ -72,7 +76,7 @@ Disable the window frame (allows you to use your own window chrome inside of Bla
7276
builder.Window.UseFrame(false);
7377
```
7478

75-
And change your window icon (uses `wwwroot/favicon.ico` as the default):
79+
And change your window icon (uses `favicon.ico` as the default, base directory is `wwwroot`):
7680
```csharp
7781
builder.Window.UseIcon("myicon.ico");
7882
```

0 commit comments

Comments
 (0)