Skip to content

Changelog

github-actions[bot] edited this page Nov 27, 2026 · 12 revisions

0.7.0

ElectronNET.Core

  • Updated dependencies
  • Updated infrastructure (#1127, #1129) @icnocop
  • Improved documentation (#1130) @farisbasha
  • Fixed typo in documentation (#1126) @icnocop
  • Fixed startup failure with host lockfile (#1125) @DYH1319
  • Fixed hanging host when Electron exists before bridge (#1124) @DYH1319
  • Fixed dev mode launches passing the script file instead of the app directory (#1121) @Denny09310
  • Added window.electronNET.getPathForFile to retrieve the path of dropped files in the renderer (#1002)
  • Added support for WebContentsView as an alternative to BrowserWindow (#1131)
  • Added WebContentsView.DestroyAsync / Dispose to close a view's web contents and release its resources
  • Added WindowManager.MainWindowRecreated event, raised when the main window is recreated on macOS activation
  • Added Enum converter to respect EnumMemberAttributeenhancement (#1132) @AeonSake
  • Added support for file drop (#1134)
  • Added Session.SetDownloadPolicy and events (OnDownloadStarted, OnDownloadBlocked and OnDownloadDone) to block or redirect downloads (#434)

0.6.0

ElectronNET.Core

  • Updated dependencies
  • Updated WebContents zoom level APIs to use double instead of int (#956)
  • Improved migration checks to honor custom output paths and to detect ProjectGuid in publish profiles (#946)
  • Fixed single instance handling on macOS (#1040)
  • Fixed slow socket bridge startup by binding to an explicit loopback address (#1103)
  • Fixed local debugging launching the host main.js as a script file, which made Electron run its default app and resolve app name and userData to "Electron" instead of the app's productName (dev launch now points at the .electron app directory)
  • Fixed socket bridge connection when a system proxy is configured (#1105)
  • Fixed electron-builder using the host RID instead of the target RID (#1097)
  • Fixed cross-compilation behavior on same platform (#1098) @epsnm
  • Fixed resolution of unrelated target (#1099) @epsnm
  • Fixed false alarm for ELECTRON001 on a root package-lock.json (#946)
  • Added ElectronNET.Core.Templates package with a dotnet new electron-blazor template (#414)
  • Added WebContents.OnZoomChanged event (#956)
  • Added WebContents page loading APIs LoadFileAsync, IsLoadingAsync, IsLoadingMainFrameAsync, IsWaitingForResponseAsync, Reload, ReloadIgnoringCache and Stop (#956)
  • Added WebContents.InsertCSSAsync and WebContents.RemoveInsertedCSSAsync for dynamic CSS (#956)
  • Added WebContents editing and selection APIs (undo, redo, cut, copy, paste, insert text, select, ...) (#956)
  • Added WebContents.FindInPageAsync, WebContents.StopFindInPage and the OnFoundInPage event (#956)
  • Added WebContents audio events OnAudioStateChanged, OnMediaStartedPlaying and OnMediaPaused (#956)
  • Added WebContents.ScrollToTop and WebContents.ScrollToBottom (#956)
  • Added target framework customization (#1095) @epsnm
  • Added configurable Electron root directory for custom packaging layouts (#1106) @DYH1319
  • Added ability for custom_main.js to modify command line switches (#1029) @AeonSake
  • Added migration checks for incomplete ElectronHostHook folders (ELECTRON010, ELECTRON011) (#946)
  • Added ElectronExecutableName to separate the product name from the executable name (#1003) @AeonSake
  • Added build extensibility properties ElectronSkipExecCommands and ElectronIntermediatePublishDir (#1106) @DYH1319

0.5.2

ElectronNET.Core

  • Fixed token param being appended to external URLs (#1075)
  • Fixed startup mode discriminator in case of existing wwwroot (#1050)
  • Fixed CA1416 on ASP.NET project (#1091) @epsnm
  • Fixed loading issue in plain Visual Studio (#1084) @epsnm
  • Fixed bloated ASAR file (#1080) @epsnm
  • Improved selection of runtime identifier (#1081) @epsnm
  • Added more variants for UseElectron (#1076) @AeonSake
  • Added support for modern MacOS app icon (#1047)

0.5.1

ElectronNET.Core

  • Fixed slicing of arguments for packaged applications (#1072)
  • Added support for Electron 42+ (#1073)

0.5.0

ElectronNET.Core

  • Updated internal facade from SocketIoFacade to ISocketConnection (#1037)
  • Fixed HasShadow is not true by default (#1049) @AeonSake
  • Fixed missing ReadAllLines in MSBuild execution (#1035)
  • Fixed serialization of release notes for the updater (#1041)
  • Added automatic port selection and secured IPC communication (#1038)

0.4.1

ElectronNET.Core

  • Updated documentation for preload scripts (#1031) @AeonSake
  • Updated timeout for electron-builder (#1013) @softworkz
  • Updated disposal avoiding exceptions on teardown (#1026) @softworkz
  • Updated migration guide (#1015) @hilin
  • Fixed handling of Center property for windows (#1001)
  • Fixed false alarm for ELECTRON001, ELECTRON008, and ELECTRON009 (#1012) @softworkz
  • Added missing methods on Cookies (#1000)
  • Added overload for GetAllDisplaysAsync with timeout (#1033) @softworkz
  • Added OnBoundsChanged event (#1014) @softworkz
  • Added new events for ipcMain (#1019) @DYH1319

0.4.0

ElectronNET.Core

  • Fixed ElectronSingleInstance handling (#996) @softworkz
  • Fixed PackageId handling (#993) @softworkz
  • Added cross-platform npm restore and check mismatch on publish (#988) @softworkz

0.3.1

ElectronNET.Core

  • Fixed issue transforming the project ID (#989, #990) @softworkz

0.3.0

ElectronNET.Core

  • Updated infrastructure (#937, #939) @softworkz
  • Updated all model classes to Electron API 39.2 (#949) @softworkz
  • Fixed output path for electron-builder (#942) @softworkz
  • Fixed floating point display resolution (#944) @softworkz
  • Fixed error in case of missing electron-host-hook (#978)
  • Fixed previous API break using exposed JsonElement objects (#938) @softworkz
  • Fixed and improved several test cases (#962) @softworkz
  • Fixed startup of Electron.NET from VS Code Debug Adapter (#952)
  • Fixed the BrowserWindowOptions (#945) @softworkz
  • Fixed example for AutoMenuHide to reflect platform capabilities (#982) @markatosi
  • Added several migration checks for publishing (#966) @softworkz
  • Added more test runners for E2E tests (#950, #951) @agracio
  • Added dynamic updates for tray menu (#973) @davidroth
  • Added matrix tests with 6 runners and 2 electron version (#948) @softworkz
  • Added additional APIs for WebContents (#958) @agracio
  • Added documentation for MacOS package publish (#983) @markatosi
  • Added sample application for ElectronHostHook (#967) @adityashirsatrao007

0.2.0

ElectronNET.Core

  • Updated dependencies (#930) @softworkz
  • Updated integration tests (#931) @softworkz
  • Updated ElectronNET.Host (#935) @softworkz
  • Removed transition period specific build configuration (#928) @softworkz
  • Added IsRunningBlazor option to BrowserWindowOptions (#926)
  • Added platform support attributes (#929) @softworkz

0.1.0

ElectronNET.Core

  • Updated PrintToPDFOptions to also allow specifying the PageSize with an object (#769)
  • Updated splashscreen image to have 0 margin (#622)
  • Updated the IPC API w.r.t. naming and consistency (#905) @agracio
  • Updated the IPC bridge w.r.t. synchronization and thread-safety (#918) @agracio
  • Updated serialization to use System.Text.Json replacing Newtonsoft.Json (#917) @Denny09310
  • Fixed parameter handling for the sendToIpcRenderer function (#922) @softworkz
  • Fixed synchronization on removing event handlers (#921) @softworkz
  • Fixed creation of windows with contextIsolation enabled (#906) @NimbusFox
  • Fixed single instance behavior using the ElectronSingleInstance property (#901)
  • Fixed potential race conditions (#908) @softworkz
  • Added option to use ElectronSplashScreen with an HTML file (#799)
  • Added option to provide floating point value as aspect ratios with SetAspectRatio (#793)
  • Added option to provide TitleBarOverlay as an object (#911) @Denny09310
  • Added TitleBarOverlay property to BrowserWindowOptions (#909)
  • Added RoundedCorners property to BrowserWindowOptions
  • Added integration tests and robustness checks (#913) @softworkz
  • Added .NET 10 as an explicit target

0.0.18

ElectronNET.Core

Highlights

  • Complete MSBuild Integration: Eliminated CLI tool dependency, moved all build processes to MSBuild with deep Visual Studio integration
  • Modernized Architecture: Restructured process lifecycle with .NET launching first and running Electron as child process for better control and reliability
  • Cross-Platform Development: Build and debug Linux applications directly from Windows Visual Studio via WSL integration
  • Flexible Electron Versioning: Removed version lock-in, users can now select any Electron version with build-time validation
  • Enhanced Debugging Experience: ASP.NET-first debugging with Hot Reload support and improved process termination handling
  • Console App Support: No longer requires ASP.NET - now works with simple console applications for file system or remote server HTML/JS

Build System & Project Structure

  • Eliminated electron.manifest.json configuration file, replaced with MSBuild project properties
  • Introduced new package structure: ElectronNET.Core (main package), ElectronNET.Core.Api (API definitions), ElectronNET.Core.AspNet (ASP.NET integration)
  • Added Runtime Identifier (RID) selection as part of project configuration
  • Restructured build folder layout to use standard .NET format (bin\net8.0\win-x64) instead of bin\Desktop
  • Implemented incremental build support for Electron assets to improve build performance
  • Added custom MSBuild tasks for Electron-specific build operations

Development Experience

  • Implemented unpackaged run-mode for development using regular .NET builds with unpackaged Electron configuration
  • Added support for building Linux packages on Windows via WSL integration
  • Enabled running and debugging Linux application outputs on Windows through WSL
  • Integrated TypeScript compilation with ASP.NET tooling for consistent builds
  • Added process orchestration supporting 8 different launch scenarios (packaged/unpackaged × console/ASP.NET × dotnet-first/electron-first)

Debugging & Runtime

  • Dramatically improved debugging experience with ASP.NET-first launch mode
  • Added Hot Reload support for ASP.NET code during development
  • Implemented proper process termination handling for all exit scenarios
  • Minimized startup times through optimized build and launch procedures

Technical Improvements

  • Enhanced splash screen handling with automatic path resolution
  • Improved ElectronHostHook integration as proper npm package dependency
  • Updated to latest TypeScript version with ESLint configuration
  • Added support for custom main.js files in projects
  • Implemented version management through common.props file
  • Added build-time Electron version compatibility validation

Package & Distribution

  • Integrated MSBuild publishing mechanisms for creating Electron packages
  • Added folder publishing support with improved parameter handling
  • Implemented automated package.json generation from MSBuild properties
  • Added GitHub release automation with proper versioning
  • Reduced package sizes by eliminating unnecessary TypeScript dependencies

Migration & Compatibility

  • Maintained backward compatibility for existing ElectronHostHook implementations
  • Removed ASP.NET requirement: Now works with simple console applications for file system or remote server HTML/JS scenarios
  • Added support for both console and ASP.NET Core application types
  • Preserved all existing Electron API functionality while modernizing architecture
  • Added migration path for existing projects through updated package structure

This represents a comprehensive modernization of Electron.NET, addressing the major pain points around debugging, build complexity, and platform limitations while maintaining full API compatibility.

Clone this wiki locally