Skip to content
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 Desktop to replace Electron Client #108

Open
Webreaper opened this issue Feb 18, 2021 · 4 comments
Open

Blazor Desktop to replace Electron Client #108

Webreaper opened this issue Feb 18, 2021 · 4 comments
Labels
future-consideration Feature for possible consideration in future..

Comments

@Webreaper
Copy link
Owner

https://devblogs.microsoft.com/dotnet/announcing-net-6-preview-1/#blazor-desktop-apps - see https://github.com/dotnet/aspnetcore/issues/27217

@Webreaper Webreaper added the enhancement New feature or request label Feb 18, 2021
@Jogai
Copy link

Jogai commented Mar 2, 2021

Seems like a big investment. Since blazor still uses a webview I dont see the appeal. Why not make a proper xaml interface then? You can use Uno platform and support every platform too (edit: and you can do so today! instead of waiting till maui/winui3 is complete).

@Webreaper
Copy link
Owner Author

Webreaper commented Mar 2, 2021

I think you misunderstand the architecture of the app. It already works on all platforms, and the UI is all Blazor Web-based, server-deployed. The desktop client is just a container which has some native client-side functionality to allow some native interop. It's a very minimal part of the app.

The investment would only be to replace the electron container with something else (webwindow, in this case, because of its smaller memory and deployment footprint). So a few hours max.

I've no interest in rewriting the UI (and essentially the app) to use Xaml, that doesn't really make much sense architecturally. Uno looks interesting, but I'm not sure there's a big future for Xaml really. But I'm bemused by your use of the word "proper". 😁

@Jogai
Copy link

Jogai commented Mar 3, 2021

You are correct, I didn't check what the current state was.

English is not my native language.

@Webreaper Webreaper added future-consideration Feature for possible consideration in future.. and removed enhancement New feature or request labels Jun 4, 2021
@Webreaper
Copy link
Owner Author

Alternative option - once .Net 7 brings Blazor Hybrid, add WASM to the front end and use https://github.com/KristofferStrube/Blazor.FileSystemAccess to do the file access that the Desktop Client provides today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future-consideration Feature for possible consideration in future..
Projects
None yet
Development

No branches or pull requests

2 participants