Skip to content

Can no longer build an electron application to target windows in docker #1045

@Tricky1187

Description

@Tricky1187
  • Version:
    ElectronNET.Core: 0.4.1
    ElectronNET.Core.AspNet: 0.4.1
    ElectronNET.Core.API: 0.4.1
    .NET: 10
    NodeJs: 22
  • Target:
    An Asp.net application designed to run on a windows x64 system.

I have a windows application that I build in linux using Docker. Based on the instructions from https://www.electron.build/multi-platform-build#docker, I am building my Asp.Net application using the docker image electronuserland/builder:22-wine, installing the dotnet sdk, and building my application. With version 0.3.0, everything was working fine. When updating to 0.4.1, the following error occurs when publishing the application:

error ELECTRON100: The target RuntimeIdentifier 'win-x64' (platform: win) does not match the current operating system (linux)

Building our application in docker greatly simplifies our build environment both for our developers and when using our build agents because everything is contained in the Dockerfile and virtually no external dependencies are required. We have been building our application in this manner for years and would like to continue to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions