mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Exception when dotnet electronize build #183
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.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
@45hur commented on GitHub (Jun 14, 2018):
Try to install
npm install npm@latest -gandnpm install electron-packager -gmanually.I had same error and made it work with
nodev8.11.3npm6.1.0electron-packager12.1.0dotnet electronize0.0.9.0@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?
@GregorBiswanger commented on GitHub (Jul 22, 2018):
@ernestotw85 the binary file is in "bin/desktop" folder.