Skip to content

Is it possible to get dotnet build to produce a Windows and a Linux executable? #43317

@sandrock

Description

@sandrock

Is your feature request related to a problem? Please describe.

dotnet build on Windows for an executable project will produce a .dll and a runnable .exe file
dotnet build on GNU+Linux for an executable project will produce a .dll and a runnable ELF file

There does not seem to be a way to do both.

Describe the solution you'd like

In our CI/CD build, we would like to produce both the EXE and ELF file. This would make our package runnable on both OS.
Can we have an option to produce both the EXE and ELF file?
Something like: dotnet build --exe-and-elf

Additional context

I found this post for the same request: SO Is it possible to get dotnet to produce a Windows and a Linux executable?]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions