question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build for windows 32-bits

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
carlobonamicocommented, Nov 22, 2019

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

case "custom":
                    var splittedSpecified = specifiedPlatfromFromCustom.Split(';');
                    netCorePublishRid = splittedSpecified[0];
                    electronPackerPlatform = splittedSpecified[1];

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

1reaction
PabloLilaocommented, Jul 11, 2018

Just escape the semicolon if you are using powershell like this: “dotnet electronize build build /target custom win7-x86`;win32 /electron-arch ia32”

Read more comments on GitHub >

github_iconTop Results From Across the Web

windows - Can't build 32-bit binaries on a 64 bit system
While I'm able to build the binaries for my 64-bit windows system, i'm unable to find a way to produce the 32-bit ones,...
Read more >
Unable to run a 32 bit Windows build ...
We are trying to build a windows win32 executable but when we do the application installs but will not start. No errors are...
Read more >
Can't compile 32-bit applications on a x64 machine - Visual ...
MSBuild 4.0 or Visual Studio 2010 may fail to compile a 32-bit application targeted for .NET Framework 3.5, 3.0 or 2.0 on a...
Read more >
Installing Wine 1.5: configure: error: Cannot build a 32-bit ...
no configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries. Configure failed, aborting install. How do ...
Read more >
Can't build setup project for 64 bit app.
You are missing the point, I have a 64 bit app that requires 64 bit dlls. The setup project will not build the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found