Exception when dotnet electronize build #183

Closed
opened 2026-01-29 16:33:02 +00:00 by claunia · 3 comments
Owner

Originally created by @ernestotw85 on GitHub (Jun 13, 2018).

Originally assigned to: @GregorBiswanger on GitHub.

I am trying to run dotnet electronize build and Electron.NET is getting this exception:

Build Electron Application...

Unhandled Exception: System.AggregateException: One or more errors occurred. (The given key was not present in the dictionary.) ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at ElectronNET.CLI.Commands.BuildCommand.<ExecuteAsync>b__13_0() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at ElectronNET.CLI.Program.Main(String[] args)

I am using the following versions:;

dotnet --version: 2.1.4
node --version: v9.3.0
dotnet electronize version: 0.0.9.0

Originally created by @ernestotw85 on GitHub (Jun 13, 2018). Originally assigned to: @GregorBiswanger on GitHub. I am trying to run dotnet electronize build and Electron.NET is getting this exception: Build Electron Application... Unhandled Exception: System.AggregateException: One or more errors occurred. (The given key was not present in the dictionary.) ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at ElectronNET.CLI.Commands.BuildCommand.<ExecuteAsync>b__13_0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at ElectronNET.CLI.Program.Main(String[] args) I am using the following versions:; dotnet --version: 2.1.4 node --version: v9.3.0 dotnet electronize version: 0.0.9.0
claunia added the question label 2026-01-29 16:33:02 +00:00
Author
Owner

@45hur commented on GitHub (Jun 14, 2018):

Try to install npm install npm@latest -g and npm install electron-packager -g manually.

I had same error and made it work with
node v8.11.3
npm 6.1.0
electron-packager 12.1.0
dotnet electronize 0.0.9.0

@45hur commented on GitHub (Jun 14, 2018): Try to install `npm install npm@latest -g` and `npm install electron-packager -g` manually. I had same error and made it work with `node` v8.11.3 `npm` 6.1.0 `electron-packager` 12.1.0 `dotnet electronize` 0.0.9.0
Author
Owner

@ernestotw85 commented on GitHub (Jun 14, 2018):

@Elctro Thank you very much!! I installed all those tools and versions. From cmd I runned this command:
dotnet electronize build /target win
This command generate a folder with some js, dlls and other files. But my question is Where is located the .exe that show the Electron UI?

@ernestotw85 commented on GitHub (Jun 14, 2018): @Elctro Thank you very much!! I installed all those tools and versions. From cmd I runned this command: dotnet electronize build /target win This command generate a folder with some js, dlls and other files. But my question is Where is located the .exe that show the Electron UI?
Author
Owner

@GregorBiswanger commented on GitHub (Jul 22, 2018):

@ernestotw85 the binary file is in "bin/desktop" folder.

@GregorBiswanger commented on GitHub (Jul 22, 2018): @ernestotw85 the binary file is in "bin/desktop" folder.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#183