BertP
Posts: 4
Joined: Thu Feb 11, 2021 9:23 am

Output executable is categorized as companion file

Referencing a Visual Studio project that targets the net5.0 framework, or a variant thereof like net5.0-windows7.0 etc, results in the output executable (.exe) not being enlisted underneath the Primary files category.
It does show up underneath the Companion files category, which can be used as a workaround. This workaround is however not a true solution because machine-local files like appsettings.development.json MUST NOT be copied into a released installer.

Because Net5.0 inherits the toolchain from .NetCore this is not wrong behaviour per se because the actual app code is contained within the main output library (.dll). The executable is nothing more than a bootstrapper for that library.
The executable is nonetheless required because both service entries and start menu tiles require an exe file to launch.
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Output executable is categorized as companion file

Hello,

I did not quite manage to reproduce this on our end.

If possible, could you please forward me a step-by-step test case which I can follow in order to reproduce this?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”