mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Unable to Publish Project #1028
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AeonSake on GitHub (Dec 6, 2025).
Whenever I try to publish an ASP.NET project following the provided steps in the wiki, the build fails with the following exception when running the electron-builder:
.csproj).csproj)Steps to Reproduce:
net10.0ElectronNET.CoreandElectronNET.Core.AspNetversion 0.2.0 as NuGet packagesbuilder.UseElectron(args, ElectronAppReady);to the builder call and the following method for creating the window:Properties/PublishProfile(in this case aswin-x64.pubxml) with the following content:I also tried specifying a specific Electron and electron-builder version in the
.csprojfile without success. Normal debug/release builds and running it succeed without issues. I tried following the provided wiki pages as close as possible. If I'm doing something wrong, please correct me.Please note, that this happened in a newly created blank project. I initially ran into this same issue when reworking a more complex project (several package and project dependencies) to use this package. It might be a related issue but publishing that more complex project also DELETED ALL SOURCE FILES within that project directory. Luckily, I had all relevant changes committed or staged.