PhotinoX.Blazor
4.2.0
Prefix Reserved
dotnet add package PhotinoX.Blazor --version 4.2.0
NuGet\Install-Package PhotinoX.Blazor -Version 4.2.0
<PackageReference Include="PhotinoX.Blazor" Version="4.2.0" />
<PackageVersion Include="PhotinoX.Blazor" Version="4.2.0" />
<PackageReference Include="PhotinoX.Blazor" />
paket add PhotinoX.Blazor --version 4.2.0
#r "nuget: PhotinoX.Blazor, 4.2.0"
#:package PhotinoX.Blazor@4.2.0
#addin nuget:?package=PhotinoX.Blazor&version=4.2.0
#tool nuget:?package=PhotinoX.Blazor&version=4.2.0
PhotinoX.Blazor
Blazor integration for PhotinoX (native OS WebView host).
- Windows: WebView2
- macOS: WKWebView
- Linux: WebKitGTK 4.1
Note:
PhotinoX.Blazoris an independent fork of tryphotino/photino.Blazor under the Apache‑2.0 license and is not affiliated with the original project or organization.
Quick start
[STAThread]
static void Main(string[] args)
{
var appBuilder = PhotinoBlazorAppBuilder.CreateDefault(args);
appBuilder.Services
.AddLogging();
// register root component and selector
appBuilder.RootComponents.Add<App>("app");
var app = appBuilder.Build();
// customize window
app.MainWindow
.SetIconFile("favicon.ico")
.SetTitle("PhotinoX Blazor Sample");
AppDomain.CurrentDomain.UnhandledException += (sender, error) =>
{
app.MainWindow.ShowMessage("Fatal exception", error.ExceptionObject.ToString());
};
app.Run();
}
Core (ecosystem)
- PhotinoX - .NET wrapper around the native layer.
- PhotinoX.Native - native binaries for Windows/macOS/Linux.
- PhotinoX.Server - optional static-file server (avoids CORS/ESM issues).
- PhotinoX.Samples - sample projects showcasing common scenarios.
Install
dotnet add package PhotinoX.Blazor
(Ensure PhotinoX.Native is available at runtime for your target RID.)
Package targets net8.0; net9.0; net10.0. CI builds use the latest .NET 10 SDK.
Samples
Requirements
- .NET 10 SDK (build)
- Target frameworks:
net8.0; net9.0; net10.0(package supports all three) - Runtime deps: see PhotinoX.Native (
runtimes/<rid>/native/) - Windows: WebView2 Runtime
Required component: Microsoft.Web.WebView2 (Edge WebView2)
https://learn.microsoft.com/microsoft-edge/webview2/ - macOS: WKWebView (system WebKit)
https://developer.apple.com/documentation/webkit/wkwebview/ - Linux: WebKitGTK 4.1 (runtime + dev packages)
https://webkitgtk.org/
Build from source
dotnet restore Photino.Blazor/PhotinoX.Blazor.csproj
dotnet build Photino.Blazor/PhotinoX.Blazor.csproj -c Release
dotnet pack Photino.Blazor/PhotinoX.Blazor.csproj -c Release -o artifacts
CI: see
.github/workflows/build.yml(build + pack + upload.nupkg/.snupkg).
Contributing
Issues and PRs are welcome. Keep PRs focused, minimal, and consistent with the rest of PhotinoX.
License
PhotinoX.Blazor is licensed under Apache‑2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.Components.WebView (>= 10.0.5)
- Microsoft.Extensions.Logging.Console (>= 10.0.5)
- PhotinoX (>= 4.2.0)
-
net8.0
- Microsoft.AspNetCore.Components.WebView (>= 8.0.25)
- Microsoft.Extensions.Logging.Console (>= 10.0.5)
- PhotinoX (>= 4.2.0)
-
net9.0
- Microsoft.AspNetCore.Components.WebView (>= 9.0.14)
- Microsoft.Extensions.Logging.Console (>= 10.0.5)
- PhotinoX (>= 4.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.