Repository navigation
Release 0.7.0 - #1136
Merged
Merged
Release 0.7.0#1136
Conversation
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 4.3.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.3.1...4.3.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [image-size](https://github.com/image-size/image-size) from 1.2.1 to 2.0.3. - [Release notes](https://github.com/image-size/image-size/releases) - [Commits](https://github.com/image-size/image-size/commits) --- updated-dependencies: - dependency-name: image-size dependency-version: 2.0.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…/ElectronNET.Host/image-size-2.0.3 Bump image-size from 1.2.1 to 2.0.3 in /src/ElectronNET.Host
Bumps [image-size](https://github.com/image-size/image-size) from 1.2.1 to 2.0.3. - [Release notes](https://github.com/image-size/image-size/releases) - [Commits](https://github.com/image-size/image-size/commits) --- updated-dependencies: - dependency-name: image-size dependency-version: 2.0.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…/ElectronNET.WebApp/ElectronHostHook/js-yaml-4.3.2 Bump js-yaml from 4.3.1 to 4.3.2 in /src/ElectronNET.WebApp/ElectronHostHook
…/ElectronNET.Host/image-size-2.0.3 Bump image-size from 1.2.1 to 2.0.3 in /src/ElectronNET.Host
Bumps [image-size](https://github.com/image-size/image-size) from 1.2.1 to 2.0.3. - [Release notes](https://github.com/image-size/image-size/releases) - [Commits](https://github.com/image-size/image-size/commits) --- updated-dependencies: - dependency-name: image-size dependency-version: 2.0.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…/ElectronNET.Host/image-size-2.0.3 Bump image-size from 1.2.1 to 2.0.3 in /src/ElectronNET.Host
Bumps [engine.io](https://github.com/socketio/socket.io) from 6.6.9 to 6.6.11. - [Release notes](https://github.com/socketio/socket.io/releases) - [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md) - [Commits](https://github.com/socketio/socket.io/compare/engine.io@6.6.9...engine.io@6.6.11) --- updated-dependencies: - dependency-name: engine.io dependency-version: 6.6.11 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.16 to 1.1.21. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v1.1.16...v1.1.21) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [engine.io](https://github.com/socketio/socket.io) from 6.6.8 to 6.6.11. - [Release notes](https://github.com/socketio/socket.io/releases) - [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md) - [Commits](https://github.com/socketio/socket.io/compare/engine.io@6.6.8...engine.io@6.6.11) --- updated-dependencies: - dependency-name: engine.io dependency-version: 6.6.11 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [electron](https://github.com/electron/electron) from 39.8.10 to 41.10.6. - [Release notes](https://github.com/electron/electron/releases) - [Commits](electron/electron@v39.8.10...v41.10.6) --- updated-dependencies: - dependency-name: electron dependency-version: 41.10.6 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
…/ElectronNET.WebApp/ElectronHostHook/engine.io-6.6.11 Bump engine.io from 6.6.8 to 6.6.11 in /src/ElectronNET.WebApp/ElectronHostHook
…/ElectronNET.Host/engine.io-6.6.11 Bump engine.io from 6.6.9 to 6.6.11 in /src/ElectronNET.Host
…ost/electron-41.10.6
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.18 to 1.1.21. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v1.1.18...v1.1.21) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…/ElectronNET.WebApp/ElectronHostHook/brace-expansion-1.1.21 Bump brace-expansion from 1.1.18 to 1.1.21 in /src/ElectronNET.WebApp/ElectronHostHook
Point the unpackaged dev launches at the .electron directory rather than main.js, so Electron reads package.json as the app manifest and resolves the app name and the default userData folder from productName at process startup, instead of falling back to the default app's "Electron" name. Covers the .NET-first branch in ElectronProcessActive and the Electron-first launches (launchSettings and docs).
…name fix: dev launches passing the script file instead of the app directory
SourceLink is built into the .NET SDK since .NET 8; the package is deprecated and pins vulnerable Microsoft.Build.Tasks.Git 8.0.0 (CVE-2026-62900 / GHSA-23fw-v26w-5fgq). PublishRepositoryUrl=true in common.props keeps built-in SourceLink active.
Drop deprecated Microsoft.SourceLink.GitHub 8.0.0 (CVE-2026-62900)
…/ElectronNET.Host/brace-expansion-1.1.21 Bump brace-expansion from 1.1.16 to 1.1.21 in /src/ElectronNET.Host
…/ElectronNET.Host/electron-41.10.6 Bump electron from 39.8.10 to 41.10.6 in /src/ElectronNET.Host
When Electron exits before the socket bridge connects (for example because another instance holds the single-instance lock), RuntimeControllerDotNetFirst stops the bridge, but SocketBridgeService only reaches Stopped through BridgeDisconnected, which a never-connected socket does not raise. The controller then never reaches Stopped and the .NET host hangs forever. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ServiceBase - SocketBridgeServiceLifecycleTests: a bridge that never connects (closed loopback port) reaches Stopped after Stop(), raises Stopping then Stopped exactly once, and is not moved out of Stopped by the pending connect attempt. These fail without the previous commit (the bridge stays in Stopping and Stopped is never raised). - LifetimeServiceBaseTests: Start/Stop transitions, Stopped before Ready completing every earlier wait task (what lets hosts awaiting WaitReadyTask observe a stopped runtime), same-state transitions being ignored, and backward transitions / Stop after Stopped throwing. No Electron runtime is required for either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge of #1118 left package-lock.json with queue 6.0.2 but without its dependency inherits. The build copies this lockfile next to the generated package.json, which requests image-size ^1.2.1, so npm reuses the locked queue, never installs inherits, and Electron fails at startup with "Cannot find module 'inherits'". Go back to image-size ^1.2.1 in the Host: it matches package.template.json and the callback API that main.js uses, which 2.x no longer provides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix Electron startup failure caused by the Host lockfile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix host hang when Electron exits before the socket bridge connects
Node.js 20 is deprecated on GitHub Actions runners. Bump each action to the lowest major version that runs on Node.js 24: - actions/checkout v3/v4 -> v5 - actions/setup-dotnet v4 -> v5 - actions/setup-node v4 -> v5 - actions/upload-artifact v4 -> v6 - actions/download-artifact v4 -> v7 - dawidd6/action-download-artifact v8 -> v17
The electronjs.org/docs/api/locales page no longer exists (404). Link to the app.getLocale() section of the Electron app API docs instead, which documents the possible return values.
Fix dead Electron locales link in GetLocaleAsync docs
Implemented Support for WebContentsView
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Added More Samples
Refactor enum serialization methods to improve handling of numeric values and property names. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Added Enum Converter to Respect EnumMemberAttribute
Added Support for File Drop
Electron's will-download event requires preventDefault/setSavePath to be called synchronously, which the async bridge cannot do. Instead, .NET now sends a DownloadPolicy (blocked/allowed extensions, save directory, overwrite) to the host, which applies it synchronously in will-download. OnDownloadStarted, OnDownloadBlocked and OnDownloadDone notify .NET. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019sgeiSkC4w68XJ1ZFmPsqs
…into feature/download-policy
- Synchronize download event handler changes with the bridge registration - Keep the session of a download registration so it can be removed after the window is gone, and drop registrations when the web contents are destroyed - Use case-insensitive save path reservations on Windows and macOS - Added test for downloads rejected by the allow-list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019sgeiSkC4w68XJ1ZFmPsqs
…NET/Electron.NET into feature/download-policy
Added Download Policy
pr-comment: Run #186
🎉 All tests passed!Github Test Reporter by CTRF 💚 🔄 This comment has been updated |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved concurrency bugs can strand view-creation tasks or return another view’s bounds, while default-runtime preload incompatibility, missing renderer disposal, and macOS window reattachment gaps remain.
5 open issues
2 files not reviewed
src/ElectronNET.Host/package-lock.json: Generated filesrc/ElectronNET.WebApp/ElectronHostHook/package-lock.json: Generated file
What changed in this PR
Prepares ElectronNET.Core 0.7.0, expanding the .NET-to-Electron bridge with new APIs, practical samples, and updated release infrastructure.
Changes:
- Adds file-path helpers, download policies and events, and
WebContentsViewsupport. - Updates enum serialization, bridge shutdown handling, and development launches.
- Adds three samples and refreshes dependencies, documentation, tests, and CI workflows.
| File | Description |
|---|---|
| src/ElectronNET/build/ElectronNETRules.Project.xaml | Adds selectable Electron versions. |
| src/ElectronNET.WebApp/Properties/launchSettings.json | Launches the Electron app directory. |
| src/ElectronNET.WebApp/ElectronNET.WebApp.csproj | Updates package references to 0.7.0. |
| src/ElectronNET.WebApp/ElectronHostHook/package-lock.json | Refreshes host-hook dependencies. |
| src/ElectronNET.Templates/templates/blazor/ElectronBlazorApp.csproj | Updates template packages to 0.7.0. |
| src/ElectronNET.Templates/ElectronNET.Templates.csproj | Updates the template version placeholder. |
| src/ElectronNET.sln | Registers three new sample projects. |
| src/ElectronNET.Samples.PreloadScript/wwwroot/index.html | Adds the preload messaging demo interface. |
| src/ElectronNET.Samples.PreloadScript/wwwroot/app.js | Connects page controls to preload APIs. |
| src/ElectronNET.Samples.PreloadScript/wwwroot/app.css | Styles the preload sample. |
| src/ElectronNET.Samples.PreloadScript/README.md | Explains preload setup and messaging. |
| src/ElectronNET.Samples.PreloadScript/Properties/launchSettings.json | Configures local sample startup. |
| src/ElectronNET.Samples.PreloadScript/Properties/electron-builder.json | Configures sample packaging. |
| src/ElectronNET.Samples.PreloadScript/Program.cs | Registers messaging handlers and creates the window. |
| src/ElectronNET.Samples.PreloadScript/Preload/preload.js | Exposes a restricted renderer messaging API. |
| src/ElectronNET.Samples.PreloadScript/ElectronNET.Samples.PreloadScript.csproj | Configures dependencies and preload asset copying. |
| src/ElectronNET.Samples.ElectronHostHook/ElectronNET.Samples.ElectronHostHook.csproj | Updates sample packages to 0.7.0. |
| src/ElectronNET.Samples.BlazorServer/wwwroot/js/interop.js | Supplies viewport information through JavaScript interop. |
| src/ElectronNET.Samples.BlazorServer/wwwroot/app.css | Styles the Blazor sample. |
| src/ElectronNET.Samples.BlazorServer/README.md | Documents Blazor and Electron integration patterns. |
| src/ElectronNET.Samples.BlazorServer/Properties/launchSettings.json | Configures local sample startup. |
| src/ElectronNET.Samples.BlazorServer/Properties/electron-builder.json | Configures sample packaging. |
| src/ElectronNET.Samples.BlazorServer/Program.cs | Configures Blazor, desktop services, and routing. |
| src/ElectronNET.Samples.BlazorServer/ElectronNET.Samples.BlazorServer.csproj | Configures sample dependencies and Electron settings. |
| src/ElectronNET.Samples.BlazorServer/Desktop/WindowService.cs | Wraps window controls and state events. |
| src/ElectronNET.Samples.BlazorServer/Desktop/NativeService.cs | Wraps native dialogs, clipboard, and shell APIs. |
| src/ElectronNET.Samples.BlazorServer/Desktop/ElectronStartup.cs | Creates the main window and application menu. |
| src/ElectronNET.Samples.BlazorServer/Desktop/AppEvents.cs | Forwards desktop events to Blazor components. |
| src/ElectronNET.Samples.BlazorServer/Components/Routes.razor | Configures component routing and navigation focus. |
| src/ElectronNET.Samples.BlazorServer/Components/Pages/WindowControl.razor | Demonstrates window commands and state updates. |
| src/ElectronNET.Samples.BlazorServer/Components/Pages/NotFound.razor | Adds a missing-page view. |
| src/ElectronNET.Samples.BlazorServer/Components/Pages/Native.razor | Demonstrates native desktop capabilities. |
| src/ElectronNET.Samples.BlazorServer/Components/Pages/Interactivity.razor | Demonstrates binding and JavaScript interop. |
| src/ElectronNET.Samples.BlazorServer/Components/Pages/Home.razor | Introduces the sample architecture. |
| src/ElectronNET.Samples.BlazorServer/Components/Pages/Error.razor | Adds an error page with request identifiers. |
| src/ElectronNET.Samples.BlazorServer/Components/Layout/MainLayout.razor | Adds navigation and menu-driven routing. |
| src/ElectronNET.Samples.BlazorServer/Components/App.razor | Configures document assets and render modes. |
| src/ElectronNET.Samples.BlazorServer/Components/_Imports.razor | Adds shared component imports. |
| src/ElectronNET.Samples.BlazorServer/appsettings.json | Sets baseline logging and host configuration. |
| src/ElectronNET.Samples.BlazorServer/appsettings.Development.json | Configures development logging. |
| src/ElectronNET.Samples.AppIcons/wwwroot/index.html | Explains platform-specific icon behavior. |
| src/ElectronNET.Samples.AppIcons/README.md | Documents icon creation, configuration, and packaging. |
| src/ElectronNET.Samples.AppIcons/Properties/PublishProfiles/win-x64.pubxml | Adds a Windows x64 publish profile. |
| src/ElectronNET.Samples.AppIcons/Properties/PublishProfiles/osx-x64.pubxml | Adds an Intel macOS publish profile. |
| src/ElectronNET.Samples.AppIcons/Properties/PublishProfiles/osx-arm64.pubxml | Adds an ARM64 macOS publish profile. |
| src/ElectronNET.Samples.AppIcons/Properties/PublishProfiles/linux-x64.pubxml | Adds a Linux x64 publish profile. |
| src/ElectronNET.Samples.AppIcons/Properties/launchSettings.json | Configures local sample startup. |
| src/ElectronNET.Samples.AppIcons/Properties/electron-builder.json | Configures platform icons and package formats. |
| src/ElectronNET.Samples.AppIcons/Program.cs | Applies runtime window and dock icons. |
| src/ElectronNET.Samples.AppIcons/ElectronNET.Samples.AppIcons.csproj | Configures icon assets and sample dependencies. |
| src/ElectronNET.Samples.AppIcons/Assets/app.svg | Adds source artwork for sample icons. |
| src/ElectronNET.IntegrationTests/Tests/WebContentsViewTests.cs | Tests view creation, bounds, and navigation. |
| src/ElectronNET.IntegrationTests/Tests/SocketBridgeServiceLifecycleTests.cs | Tests shutdown before bridge connection. |
| src/ElectronNET.IntegrationTests/Tests/SessionTests.cs | Adds download-policy integration tests. |
| src/ElectronNET.IntegrationTests/Tests/LifetimeServiceBaseTests.cs | Tests lifecycle transitions and events. |
| src/ElectronNET.IntegrationTests/Tests/EnumSerializationTests.cs | Tests annotated enum serialization and deserialization. |
| src/ElectronNET.Host/tsconfig.tsbuildinfo | Refreshes TypeScript build metadata for host APIs. |
| src/ElectronNET.Host/scripts/host-preload.js | Exposes the renderer file-path helper. |
| src/ElectronNET.Host/package.json | Updates the Electron development dependency. |
| src/ElectronNET.Host/package-lock.json | Refreshes the host dependency lockfile. |
| src/ElectronNET.Host/main.js | Registers host preloads and the view API. |
| src/ElectronNET.Host/api/webContentsView.ts | Implements host-side view creation and controls. |
| src/ElectronNET.Host/api/webContentsView.js.map | Adds the generated view API source map. |
| src/ElectronNET.Host/api/webContentsView.js | Adds the compiled view API. |
| src/ElectronNET.Host/api/webContents.ts | Implements download policies and view routing. |
| src/ElectronNET.Host/api/webContents.js | Updates compiled download and routing handlers. |
| src/ElectronNET.Host/api/ipc.ts | Adds messaging to view renderers. |
| src/ElectronNET.Host/api/ipc.js.map | Refreshes the messaging source map. |
| src/ElectronNET.Host/api/ipc.js | Updates compiled view messaging support. |
| src/ElectronNET.Host/api/browserWindows.ts | Adds child-view attachment and removal handlers. |
| src/ElectronNET.Host/api/browserWindows.js | Updates compiled child-view handlers. |
| src/ElectronNET.ConsoleApp/Properties/launchSettings.json | Launches the Electron app directory. |
| src/ElectronNET.ConsoleApp/ElectronNET.ConsoleApp.csproj | Updates the package reference to 0.7.0. |
| src/ElectronNET.AspNet/ElectronNET.AspNet.csproj | Removes the explicit SourceLink package reference. |
| src/ElectronNET.API/Serialization/EnumMemberStringEnumConverter.cs | Adds annotation-aware enum conversion. |
| src/ElectronNET.API/Serialization/ElectronJson.cs | Enables the new enum converter. |
| src/ElectronNET.API/Runtime/Services/SocketBridge/SocketBridgeService.cs | Completes shutdown when disconnection is not raised. |
| src/ElectronNET.API/Runtime/Services/ElectronProcess/ElectronProcessActive.cs | Uses directory-based development launches. |
| src/ElectronNET.API/ElectronNET.API.csproj | Removes the explicit SourceLink package reference. |
| src/ElectronNET.API/API/WindowManager.cs | Adds view creation and tracking. |
| src/ElectronNET.API/API/WebContentsView.cs | Adds the .NET view wrapper. |
| src/ElectronNET.API/API/Session.cs | Exposes download policies and lifecycle events. |
| src/ElectronNET.API/API/IpcMain.cs | Adds a view messaging overload. |
| src/ElectronNET.API/API/Entities/WebContentsViewConstructorOptions.cs | Defines view creation options. |
| src/ElectronNET.API/API/Entities/DownloadPolicy.cs | Defines download filtering and destination rules. |
| src/ElectronNET.API/API/Entities/DownloadInfo.cs | Defines download event payloads and terminal states. |
| src/ElectronNET.API/API/Electron.cs | Corrects a documentation typo. |
| src/ElectronNET.API/API/BrowserWindow.cs | Exposes child-view attachment and removal. |
| src/ElectronNET.API/API/App.cs | Updates the locale documentation link. |
| src/common.props | Sets the shared release version to 0.7.0. |
| docs/Using/Startup-Methods.md | Documents directory-based Electron launches. |
| docs/Using/File-Drop.md | Adds JavaScript and Blazor file-drop guidance. |
| docs/Using/Debugging.md | Updates development launch examples. |
| docs/GettingStarted/Console-App.md | Updates the package version example. |
| docs/API/WebContents.md | Documents download policies and events. |
| docs/API/App.md | Updates the locale reference link. |
| docs/_Sidebar.md | Links the new file-drop guide. |
| Changelog.md | Records release features and fixes. |
| .github/workflows/trailing-whitespace-check.yml | Updates the checkout action. |
| .github/workflows/retry-test-jobs.yml | Adjusts the retry condition’s YAML formatting. |
| .github/workflows/publish-wiki.yml | Updates the checkout action. |
| .github/workflows/pr-comment.yml | Updates artifact-download actions. |
| .github/workflows/PR Validation.yml | Updates checkout and .NET setup actions. |
| .github/workflows/integration-tests.yml | Updates runners, actions, and failure handling. |
| .github/workflows/Build and Publish.yml | Adds NuGet trusted publishing authentication. |
| .github/CONTRIBUTING.md | Documents test reporting and automatic retries. |
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This pull request delivers the ElectronNET.Core 0.7.0 release, focusing on infrastructure modernization, improved documentation, bug fixes, and several new features - most notably enhanced file drop support and new download policy APIs. It also updates CI workflows for improved reliability and compatibility, and refreshes documentation to reflect these changes.
These changes collectively modernize the project, improve developer experience, and introduce new capabilities for Electron.NET users.