Electron.NET - RuntimeIdentifier platform 'win-x64' and the PlatformTarget 'x86' #815

Closed
opened 2026-01-29 16:49:21 +00:00 by claunia · 1 comment
Owner

Originally created by @apedrosd on GitHub (Aug 1, 2022).

Project Type: .Net 5 MVC
OS: Win10 x64

I want to create an application with Electron JS so that it can work offline in case of network failure and communicate with an external peripheral connected to USB.

For this I have to communicate with a generic device driver. At this moment I can already communicate through visual studio (iis).

The problem is that for the drivers to work the main program has to be set to Platform Target x86 and I can't get Electron JS to start.

If I change the Platform Target to AnyCPU (x64) I get Electron JS to start but the drivers don't work.

Could there be some configuration in the part of starting Electron that could allow to overcome this behavior?

imagem

Originally created by @apedrosd on GitHub (Aug 1, 2022). Project Type: .Net 5 MVC OS: Win10 x64 I want to create an application with Electron JS so that it can work offline in case of network failure and communicate with an external peripheral connected to USB. For this I have to communicate with a generic device driver. At this moment I can already communicate through visual studio (iis). The problem is that for the drivers to work the main program has to be set to Platform Target x86 and I can't get Electron JS to start. If I change the Platform Target to AnyCPU (x64) I get Electron JS to start but the drivers don't work. Could there be some configuration in the part of starting Electron that could allow to overcome this behavior? ![imagem](https://user-images.githubusercontent.com/25372227/182178976-0682a5e3-58db-4db6-a657-325559247da7.png)
claunia added the question label 2026-01-29 16:49:21 +00:00
Author
Owner

@FlorianRappl commented on GitHub (Oct 31, 2025):

Outdated - use ElectronNET.Core and ElectronNET.Core.AspNet.

See Wiki / What's New.

@FlorianRappl commented on GitHub (Oct 31, 2025): Outdated - use `ElectronNET.Core` and `ElectronNET.Core.AspNet`. See [Wiki / What's New](https://github.com/ElectronNET/Electron.NET/wiki/What's-New).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#815