Update Readme to add guidance when using .NET 6 Minimal API Program.cs #710

Open
opened 2026-01-29 16:46:27 +00:00 by claunia · 0 comments
Owner

Originally created by @schaveyt on GitHub (Oct 17, 2021).

.NET 6 templates are now using the minimal APIs syntax by default. However the existing IWebBuilder extension method is not compatible as the new WebApplicationBuilder ASP.NET class

I propose adding an additional guidance to the Readme:

If using a Program.cs using the new Minimal API of .NET 6 add the single line as noted below

var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseElectron(args);  // add this line here
...
...
Originally created by @schaveyt on GitHub (Oct 17, 2021). .NET 6 templates are now using the minimal APIs syntax by default. However the existing IWebBuilder extension method is not compatible as the new WebApplicationBuilder ASP.NET class I propose adding an additional guidance to the Readme: > If using a Program.cs using the new Minimal API of .NET 6 add the single line as noted below ~~~java var builder = WebApplication.CreateBuilder(args); builder.WebHost.UseElectron(args); // add this line here ... ... ~~~
claunia added the Feature label 2026-01-29 16:46:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#710