mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Blank WebApp fails to start #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @robertmuehsig on GitHub (Oct 18, 2017).
Repo:
Create new ASP.NET Core 2.0 webapp
Install API & CLI Package
dotnet initialize init
dotnet initalize build
=> open ElectronNET.Host.exe
Nothing happens :(
@GregorBiswanger commented on GitHub (Oct 18, 2017):
Do you add the UseElectron extension in Program.cs?
public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args).UseStartup<Startup>().UseElectron(args).Build();And open a Window in Startup.cs?
Electron.WindowManager.CreateWindowAsync();@robertmuehsig commented on GitHub (Oct 19, 2017):
Works!
But: We need to add the UseElectron(args) method in your readme @GregorBiswanger (currently it is missing and without it, it doesn't work)