4

I have several .NET 5 projects in a solution, and one of them (let's call it MyMainProject) has OutputType WinExe. I added new InstallShield "Basic MSI Project". A few steps later I added to the setup the output of my WinExe project (MyMainProject.PublishItemsOutputGroup). The setup builds, but the problem is, instead of having MyMainProject.exe I have apphost.exe. When in InstallShield project I right-click the PublishItemsOutputGroup item and select Resolve Project Output I get the list of all items, and in the list apphost.exe is properly resolved to MyMainProject.exe. But not in the final product.

What should I do to have apphost.exe properly named in the installation? I know this file is just a shim for dotnet.exe, but I like it named the way I like it.

Dialecticus
  • 16,400
  • 7
  • 43
  • 103
  • That's an odd problem to have, given that there should be no apphost.exe file present after the project is built. A little birdy tells me that InstallShield is pulling files from obj/Release instead of bin/Release. – Hans Passant Oct 26 '21 at 13:13

0 Answers0