electron-builder error after migration #1051

Closed
opened 2026-01-29 16:56:47 +00:00 by claunia · 5 comments
Owner

Originally created by @hillin on GitHub (Jan 19, 2026).

  • Version: (Core) 0.4.0
  • Target: win-x64

Starting the ASP.NET project after migration shows the following error:

electron-builder version=26.0.20 os=10.0.22631
artifacts will be published if draft release exists reason=CI detected
loaded configuration file=D:\path\to\my\project\obj\Host\bin\electron-builder.json
description is missed in the package.json appPackageFile=D:\path\to\my\project\obj\Host\bin\package.json
author is missed in the package.json appPackageFile=D:\path\to\my\project\obj\Host\bin\package.json
Please specify 'name' in the package.json (D:\path\to\my\project\obj\Host\bin\package.json)
Please specify 'version' in the package.json (D:\path\to\my\project\obj\Host\bin\package.json)
D:\packages.nuget\electronnet.core\0.4.0\build\ElectronNET.LateImport.targets(525,5): error MSB3073: The command "npx electron-builder --config=./electron-builder.json --win --x64 -c.electronVersion=30.4.0 -c.directories.output "D:\path\to\my\project\bin\Debug\net9.0\win-x64\publish" -c.appId "my-project" -c.buildVersion "3.0.0" -c.extraResources "bin/**/*"" exited with code 1. [D:\path\to\my\project\MyProject.csproj]

Manually running:

npx electron-builder build --config=./electron-builder.json --win --x64 -c.electronVersion=30.4.0 -c.directories.output "D:\path\to\my\project\bin\Debug\net9.0\win-x64\publish"  -c.appId "my-project" -c.buildVersion "3.0.0" -c.extraResources "bin/**/*"

shows:

(electron-builder usage omitted)
Unknown arguments: D:\path\to\my\project\bin\Debug\net9.0\win-x64\publish, my-project, 3.0.0, bin/**/*

Originally created by @hillin on GitHub (Jan 19, 2026). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: (Core) 0.4.0 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: win-x64 <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Starting the ASP.NET project after migration shows the following error: > electron-builder version=26.0.20 os=10.0.22631 > artifacts will be published if draft release exists reason=CI detected > loaded configuration file=D:\path\to\my\project\obj\Host\bin\electron-builder.json > description is missed in the package.json appPackageFile=D:\path\to\my\project\obj\Host\bin\package.json > author is missed in the package.json appPackageFile=D:\path\to\my\project\obj\Host\bin\package.json > Please specify 'name' in the package.json (D:\path\to\my\project\obj\Host\bin\package.json) > Please specify 'version' in the package.json (D:\path\to\my\project\obj\Host\bin\package.json) > D:\packages\.nuget\electronnet.core\0.4.0\build\ElectronNET.LateImport.targets(525,5): error MSB3073: The command "npx electron-builder --config=./electron-builder.json --win --x64 -c.electronVersion=30.4.0 -c.directories.output "D:\path\to\my\project\bin\Debug\net9.0\win-x64\publish" -c.appId "my-project" -c.buildVersion "3.0.0" -c.extraResources "bin/**/*"" exited with code 1. [D:\path\to\my\project\MyProject.csproj] Manually running: ```powershell npx electron-builder build --config=./electron-builder.json --win --x64 -c.electronVersion=30.4.0 -c.directories.output "D:\path\to\my\project\bin\Debug\net9.0\win-x64\publish" -c.appId "my-project" -c.buildVersion "3.0.0" -c.extraResources "bin/**/*" ``` shows: > (electron-builder usage omitted) > Unknown arguments: D:\path\to\my\project\bin\Debug\net9.0\win-x64\publish, my-project, 3.0.0, bin/**/*
claunia added the questiondocumentation labels 2026-01-29 16:56:47 +00:00
Author
Owner

@softworkz commented on GitHub (Jan 19, 2026):

Please rebuild the projects and attach the complete build log.

@softworkz commented on GitHub (Jan 19, 2026): Please rebuild the projects and attach the complete build log.
Author
Owner

@hillin commented on GitHub (Jan 20, 2026):

I realized my project is still launched with electronize.exe. In the Core version we should start the ASP.NET project directly, is that right? I think this should be mentioned in the migration guide too.

@hillin commented on GitHub (Jan 20, 2026): I realized my project is still launched with electronize.exe. In the Core version we should start the ASP.NET project directly, is that right? I think this should be mentioned in the migration guide too.
Author
Owner

@softworkz commented on GitHub (Jan 21, 2026):

In the Core version we should start the ASP.NET project directly, is that right?

Yes.

I think this should be mentioned in the migration guide too.

Good idea. Would you mind to submit a PR for adding this?

@softworkz commented on GitHub (Jan 21, 2026): > In the Core version we should start the ASP.NET project directly, is that right? Yes. > I think this should be mentioned in the migration guide too. Good idea. Would you mind to submit a PR for adding this?
Author
Owner

@hillin commented on GitHub (Jan 21, 2026):

Sure - #1015

@hillin commented on GitHub (Jan 21, 2026): Sure - #1015
Author
Owner

@softworkz commented on GitHub (Jan 21, 2026):

Awesome, thanks!

@softworkz commented on GitHub (Jan 21, 2026): Awesome, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1051