Skip to content

Cannot Publish when Referencing other EXE Projects #73531

Open
@TonyValenti

Description

@TonyValenti

Description

It is not possible to publish a single file EXE that references other EXE files in the project.

Reproduction Steps

Try to publish this attached file:
MyApp.zip

Expected behavior

It should work without issue.

Actual behavior

It is not able to publish. This seems to be caused by the build process looking for "singlefilehost.exe" for the "child" EXEs and not finding it.

Regression?

Not sure.

Known Workarounds

None.

Configuration

Windows 11 x64. .NET 6.x in VS 17.2.6

Other information

The goal that I am trying to accomplish is to have a console and WPF version of my application in the same EXE. If there is a better way, I'd love to know.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions