https://github.com/yu-core/aspnetcore.components.webview.gtk
Build Linux apps with Blazor and WebKitGTK
https://github.com/yu-core/aspnetcore.components.webview.gtk
Last synced: 8 months ago
JSON representation
Build Linux apps with Blazor and WebKitGTK
- Host: GitHub
- URL: https://github.com/yu-core/aspnetcore.components.webview.gtk
- Owner: Yu-Core
- License: mit
- Created: 2025-02-06T20:00:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-09T12:26:58.000Z (9 months ago)
- Last Synced: 2025-09-16T16:16:46.536Z (9 months ago)
- Language: C#
- Homepage:
- Size: 164 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AspNetCore.Components.WebView.Gtk
[](https://www.nuget.org/packages/Yu-Core.AspNetCore.Components.WebView.Gtk/) 
AspNetCore.Components.WebView.Gtk is a library for building native clients using Blazor and WebView. It provides a BlazorWebView Widget for running the blazor hybird application on Linux. Use GTK and WebKitGTK, bound by [Gir.Core](https://github.com/gircore/gir.core)
## Start
Reference [Yu-Core.AspNetCore.Components.WebView.Gtk](https://www.nuget.org/packages/Yu-Core.AspNetCore.Components.WebView.Gtk)
```
```
Install `libwebkitgtk-6.0-4`
```bash
sudo apt update
sudo apt install libwebkitgtk-6.0-4
```
See [sample](src/BlazorWebView/sample)
## NOTE
- Only Support Linux platform
- Similarities and differences with WinForms/WPF BlazorWebView
- Similarities
UrlLoading, StartPath, BlazorWebViewInitializing, BlazorWebViewInitialized
- Differences
Cannot use Webview2 API, should consult WebKitGtk
## Dependencies
- [GirCore.Gtk-4.0](https://www.nuget.org/packages/GirCore.Gtk-4.0)
- [GirCore.WebKit-6.0](https://www.nuget.org/packages/GirCore.WebKit-6.0)
- [Microsoft.AspNetCore.Components.WebView](https://www.nuget.org/packages/Microsoft.AspNetCore.Components.WebView)
## Thanks
- [.NET MAUI](https://github.com/dotnet/maui)
- [ASP.NET Core](https://github.com/dotnet/aspnetcore)
- [DevToys](https://github.com/DevToys-app/DevToys)
- [Gir.Core](https://github.com/gircore/gir.core)
- [maui-linux](https://github.com/jsuarezruiz/maui-linux)