electron-builder | Unknown argument: . #526

Closed
opened 2026-01-29 16:41:57 +00:00 by claunia · 7 comments
Owner

Originally created by @giacomoforlani on GitHub (Jul 6, 2020).

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.

Originally created by @giacomoforlani on GitHub (Jul 6, 2020). 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.
claunia added the bug label 2026-01-29 16:41:57 +00:00
Author
Owner

@vituthanh commented on GitHub (Jul 6, 2020):

me too

@vituthanh commented on GitHub (Jul 6, 2020): me too
Author
Owner

@HaydnDias commented on GitHub (Jul 6, 2020):

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

@HaydnDias commented on GitHub (Jul 6, 2020): This has been fixed in #443 as raised in #441 , I think the plan was to release it today. @JakStark @vituthanh
Author
Owner

@vituthanh commented on GitHub (Jul 6, 2020):

I hope Electron NET.CLI will be updated soon.

@vituthanh commented on GitHub (Jul 6, 2020): I hope Electron NET.CLI will be updated soon.
Author
Owner

@vituthanh commented on GitHub (Jul 6, 2020):

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

@vituthanh commented on GitHub (Jul 6, 2020): After replace dotnet-electronize.dll file from git source at folder C:\Users\{username}\.dotnet\tools\.store\electronnet.cli\9.31.1\electronnet.cli\9.31.1\tools\netcoreapp3.1\any My project was built successfully.
Author
Owner

@rbaker26 commented on GitHub (Jul 6, 2020):

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

dotnet tool update --global ElectronNET.CLI

On Windows
image

On Linux
image

@rbaker26 commented on GitHub (Jul 6, 2020): @vituthanh @JakStark Make sure you update the dotnet tooling (not automatic) ```bash dotnet tool update --global ElectronNET.CLI ``` **On Windows** ![image](https://user-images.githubusercontent.com/31376573/86628938-7b621a00-bf7f-11ea-8f94-c7da9aa8bdbf.png) **On Linux** ![image](https://user-images.githubusercontent.com/31376573/86628737-2a522600-bf7f-11ea-8fde-97d3790fea48.png)
Author
Owner

@rbaker26 commented on GitHub (Jul 6, 2020):

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

@rbaker26 commented on GitHub (Jul 6, 2020): This is also noted in the README.md under **Important Notes** See #445 for up to date version numbers.
Author
Owner

@GregorBiswanger commented on GitHub (Jul 6, 2020):

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.

@GregorBiswanger commented on GitHub (Jul 6, 2020): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#526