wwwroot folder is cached on first run and used everytime regardless of changes & Full Build Not working - Windows 10 #168

Open
opened 2026-01-29 16:32:48 +00:00 by claunia · 0 comments
Owner

Originally created by @GammaSoul on GitHub (May 31, 2018).

Originally assigned to: @GregorBiswanger on GitHub.

Hi I’ve been preparing to build an application with electron and have only truly got into it today after spending three months learning VueJs inside out.
I also upgraded my windows 10 machine last week to the latest 1803 release.
im also using Visual Studio 2017 Community 15.6.4
But when I create a new project and put my VueJS dist/build.js folder/javascript in the wwwroot folder and run "dot net electron start" the javascript VueJs application will work very well in the electron application.
the problem is when I change the vuejs distribution file in wwwroot. the old one is cached some were in the electron.net build system on the first run and it won’t update to reflect the new javascript file eveytime i subsequently use "dot net electron start".
the other problem is that it won’t do a full build at all when I do "dotnet electronize build /target win" and I get the following error:

$ dotnet electronize build /target win
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)
Originally created by @GammaSoul on GitHub (May 31, 2018). Originally assigned to: @GregorBiswanger on GitHub. Hi I’ve been preparing to build an application with electron and have only truly got into it today after spending three months learning VueJs inside out. I also upgraded my windows 10 machine last week to the latest 1803 release. im also using Visual Studio 2017 Community 15.6.4 But when I create a new project and put my VueJS dist/build.js folder/javascript in the wwwroot folder and run "dot net electron start" the javascript VueJs application will work very well in the electron application. the problem is when I change the vuejs distribution file in wwwroot. the old one is cached some were in the electron.net build system on the first run and it won’t update to reflect the new javascript file eveytime i subsequently use "dot net electron start". the other problem is that it won’t do a full build at all when I do "dotnet electronize build /target win" and I get the following error: ``` $ dotnet electronize build /target win 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) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#168