ElectronNET version: 7.30.2
.NET Core 3.0.1 (produces the same issue with v3.1.0)
(project that reproduces the behavior is attached)
Create an ElectronNET based Blazor project with the standard steps
mkdir BlazorOnReadyIssuecd BlazorOnReadyIssuedotnet new blazorserver --no-httpsdotnet add package ElectronNET.APIdotnet new tool-manifestdotnet tool install ElectronNET.CLIdotnet electronize initProgram.cs:// ...
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder
.UseStartup<Startup>()
.UseElectron(args); // --- Added this
});
// ...
Startup.cs:// --- At the end of Configure
// ...
Task.Run(async () =>
{
var browserWindow = await Electron.WindowManager.CreateWindowAsync(
new BrowserWindowOptions
{
Title = "OnReadyToShow",
Width = 1152,
Height = 864,
Show = false // --- When set to true, project works properly
});
browserWindow.OnReadyToShow += () => browserWindow.Show();
});
electronize start)Expected behavior: The Electron Shell window is displayed with the Blazor App.
Issue: The Electron Shell window does not display.


Whenever I change the Show property of BrowserWindopOptions to true, the project works fine, but, of course, for a few seconds an empty page is displayed according to the normal behavior.
I don't understand why is it not possible to hook to the event via the option, it will be simpler to not have raise condition like that. Am I right?
PS: By the way, I Have the same issue even with version 5.30.1
I'm a bit concerned that the owners of the project are pretty passive since the beginning of December 2019 :-(. This is not what a project with 4.2k stars deserves.
I was experiencing the same problem on version 7.30.2 and got the expected behavior with this.
```C#
var window = await Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions
{
Show = false
});
window.Show();
```
@Dotneteer We authors are both fathers at the moment.. and are therefore a bit limited in time.. I will work on a new version for the days.. But you can also support or sponsor us with pull requests :)
I'll take a closer look at your problem.
I have the same problem on version 7.30.2,but netcoreapp5.0 priview project.
Fixed in the next Electron.NET Version 8.31.1.