Skip to content

Commit

Permalink
feat(BlazorWpf): add AddBlazorWebViewDeveloperTools for debug mode (#65)
Browse files Browse the repository at this point in the history
* Update MainWindow.xaml.cs

* Update MainWindow.xaml.cs

* Update MainWindow.xaml.cs
  • Loading branch information
239573049 committed Sep 4, 2023
1 parent 1dfbca7 commit 402575b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Content/BlazorWpf/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public MainWindow()
var serviceCollection = new ServiceCollection();
serviceCollection.AddWpfBlazorWebView();
serviceCollection.AddMasaBlazor();

#if DEBUG
serviceCollection.AddBlazorWebViewDeveloperTools();
#endif

Resources.Add("services", serviceCollection.BuildServiceProvider());
}
}
}

0 comments on commit 402575b

Please sign in to comment.