Skip to content

electron-builder error after migration #1009

@hillin

Description

@hillin
  • 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/**/*

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions