-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor support #25
Comments
that would require this project to actually work, which it does not. |
I haven’t really had the time to maintain this for quite a while now. I’d be happy to receive pull requests to address this. |
As far as blazer support though what would be required on top of just being able to host an ASP.NET Core WebHost? |
I had a look at seeing if https://github.com/SteveSandersonMS/BlazorDesktop could be rejigged to run with webview rather than winforms. Looks possible but I don't have anything working yet. |
@Frassle You can try WebviewX.Host, don't forget to add STAThread Attribute to your program, if it runs on windows And make the following modifications to your program: [STAThread]
public static void Main(string[] args)
{
CreateHostBuilder(args)
.Build()
// .Run();
.RunWebview();
} else
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
// app.UseHsts();
}
// app.UseHttpsRedirection();
app.UseStaticFiles(); |
@TheForgetTime did you make it running ? I saw this earlier but I was unable to run it. On new blazor project I get blank screen. |
@mikart143 Sorry, my last reply said not this library, but a brand new library based on the webviewX version that I packaged myself. However this seems to work only on Linux and I also get a white screen on windows webhost seems to stop before the webview window closes |
In my opinion it will be a good approach to add Blazor support. Currently we have asp.net core and I think that adding a Blazor would be a good idea. I am talking about Blazor server side
The text was updated successfully, but these errors were encountered: