dotnet electronize build win giving error in vs 2017 asp.net core mvc #162

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

Originally created by @himansu-Bhusan93 on GitHub (May 11, 2018).

Unhandled Exception: System.AggregateException: One or more errors occurred. (Th
e 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, C
ontextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled
Exceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotifica
tion)
at ElectronNET.CLI.Program.Main(String[] args)

Originally created by @himansu-Bhusan93 on GitHub (May 11, 2018). Unhandled Exception: System.AggregateException: One or more errors occurred. (Th e 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, C ontextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled Exceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotifica tion) at ElectronNET.CLI.Program.Main(String[] args)
Author
Owner

@WeihanLi commented on GitHub (May 20, 2018):

Can you run dotnet build to see if there's a problem during dotnet build?

@WeihanLi commented on GitHub (May 20, 2018): Can you run `dotnet build` to see if there's a problem during `dotnet build`?
Author
Owner

@solidsloth commented on GitHub (May 21, 2018):

I'm getting the same error. dotnet build does not return any errors for me. I can replicate by following the getting started and creating a new empty mvc app, installing dependencies, and trying to run dotnet electronize build.

@solidsloth commented on GitHub (May 21, 2018): I'm getting the same error. ``dotnet build`` does not return any errors for me. I can replicate by following the getting started and creating a new empty mvc app, installing dependencies, and trying to run ``dotnet electronize build``.
Author
Owner

@twtyypmb commented on GitHub (May 25, 2018):

@solidsloth perhaps one dependency of dotnet did not install correctly,that is "vcredist_x64.exe for visual studio 2015"

@twtyypmb commented on GitHub (May 25, 2018): @solidsloth perhaps one dependency of dotnet did not install correctly,that is "vcredist_x64.exe for visual studio 2015"
Author
Owner

@mgamache commented on GitHub (Jun 22, 2018):

I am getting the same error dotnet build has no errors, but I get the parent's 'Unhandled Exception' error when using 'dotnet electronize build'. Yes, vcredist_x64.exe for visual studio 2015 is installed. I am running VS 15.7.4 with .net core 2.1.300

@mgamache commented on GitHub (Jun 22, 2018): I am getting the same error `dotnet build` has no errors, but I get the parent's '`Unhandled Exception`' error when using '`dotnet electronize build`'. Yes, vcredist_x64.exe for visual studio 2015 is installed. I am running VS 15.7.4 with .net core 2.1.300
Author
Owner

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

I added the keyword /target to this command and this minor change works fine for me.
'dotnet electronize build /target win'

That was the command that I executed, my current problem is that I would like to know where is located the .exe file to open the released solution

@ernestotw85 commented on GitHub (Jun 22, 2018): I added the keyword /target to this command and this minor change works fine for me. 'dotnet electronize build /target win' That was the command that I executed, my current problem is that I would like to know where is located the .exe file to open the released solution
Author
Owner

@mgamache commented on GitHub (Jun 22, 2018):

actually I figured that out also from another thread.
it seemed to generate an EXE for me on the following path:
bin\desktop\ElectronNET.Host-win32-x64\ElectronNET.Host.exe

@mgamache commented on GitHub (Jun 22, 2018): actually I figured that out also from another thread. it seemed to generate an EXE for me on the following path: `bin\desktop\ElectronNET.Host-win32-x64\ElectronNET.Host.exe`
Author
Owner

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

thank you @mgamache I am going to check this path in my current project

@ernestotw85 commented on GitHub (Jun 22, 2018): thank you @mgamache I am going to check this path in my current project
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#162