Electron.net: electron-builder | Unknown argument: .

Created on 6 Jul 2020  路  7Comments  路  Source: ElectronNET/Electron.NET

Electron.NET CLI: 9.31.1
Node.js: 12.18.2
.NET Core: 3.1
Target: win

When I launch command "electronize build /target win" I receive following error:
Unknown argument: .

I found that this error is throwed from file ElectronNET.CLI/Commands/BuildCommand.cs at line 189, after launched command "npx electron-builder . --config=./bin/electron-builder.json --win --x64 -c.electronVersion=9.0.3".

I saw that @rbaker26 fix this bug by removing extra dot so I tried to clone repo, build solution and replace electron dotnet-electronize.dll. In this way, now electron build successfully but when I launch the app, process is visible only in background.

bug

Most helpful comment

Hey Community, we have released version 9.31.2 with the electron-builder fix! In addition, I have improved the socket problems again and updated to Electron 9.0.5.

All 7 comments

me too

This has been fixed in #443 as raised in #441 , I think the plan was to release it today. @JakStark @vituthanh

I hope Electron NET.CLI will be updated soon.

After replace dotnet-electronize.dll file from git source at folder
C:\Users{username}.dotnettools.store\electronnet.cli\9.31.1\electronnet.cli\9.31.1tools\netcoreapp3.1\any
My project was built successfully.

@vituthanh @JakStark
Make sure you update the dotnet tooling (not automatic)

dotnet tool update --global ElectronNET.CLI

On Windows
image

On Linux
image

This is also noted in the README.md under Important Notes
See #445 for up to date version numbers.

Hey Community, we have released version 9.31.2 with the electron-builder fix! In addition, I have improved the socket problems again and updated to Electron 9.0.5.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

litch0 picture litch0  路  4Comments

ThuCommix picture ThuCommix  路  3Comments

GregorBiswanger picture GregorBiswanger  路  4Comments

lyy0808 picture lyy0808  路  6Comments

philiphobgen picture philiphobgen  路  3Comments