mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
dotnet electronize build win giving error in vs 2017 asp.net core mvc #162
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 @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.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)
@WeihanLi commented on GitHub (May 20, 2018):
Can you run
dotnet buildto see if there's a problem duringdotnet build?@solidsloth commented on GitHub (May 21, 2018):
I'm getting the same error.
dotnet builddoes 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 rundotnet electronize build.@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"
@mgamache commented on GitHub (Jun 22, 2018):
I am getting the same error
dotnet buildhas 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@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
@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@ernestotw85 commented on GitHub (Jun 22, 2018):
thank you @mgamache I am going to check this path in my current project