Unable to build for windows 32-bits
See original GitHub issueI followed the instructions in the getting started video choosing an Angular Template project.
I have my demo project and I’m able to run it with dotnet electronize start
and building it with dotnet electronize build /target win
and the project builded runs fine.
But when I try to build using dotnet electronize build build /target custom win7-x86;win32 /electron-arch ia32
I get the following error:
Build Electron Application…
Unhandled Exception: System.AggregateException: One or more errors occurred. (Index was outside the bounds of the array.) —> System.IndexOutOfRangeException: Index was outside the bounds of the array. at ElectronNET.CLI.Commands.Actions.GetTargetPlatformInformation.Do(String desiredPlatform, String specifiedPlatfromFromCustom) 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)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top GitHub Comments
I found this to be useful in determining which values you have to pass to
electronize build /custom...
https://docs.microsoft.com/it-it/dotnet/core/rid-catalog
By looking at the electronize tool source code, you can see that the first value means the dotnet build Runtime Id, while hte second value represents electron builder architecture
I succeded in building a 32 bit version by means of
electronize.exe build /target custom win-x86;win /dotnet-configuration Debug /electron-arch ia32
Just escape the semicolon if you are using powershell like this: “dotnet electronize build build /target custom win7-x86`;win32 /electron-arch ia32”