Visual Studio Installer Projects creates dll instead of exe

Dave Gray 586 Reputation points
2022-10-13T07:36:42.35+00:00

Hi,
Using VS2022 (Ent).

I have a console application solution that comprises three projects

  • Class library - .NET 6
  • Console - .NET 6
  • Setup

I would like to create an .EXE as my primary output, however when I build all three and execute Setup.exe I get a DLL instead of an executable. How can I force the installer to create
.EXE?

Steps taken for my setup project

  • Right click - select properties
  • Right click on application folder
  • Add project output
  • Added primary output
  • As below.

249909-primary-output.png

249964-lm-props.png

Developer technologies | Visual Studio | Setup
Developer technologies | C#
{count} votes

Accepted answer
  1. RLWA32 49,641 Reputation points
    2022-10-13T07:48:03.55+00:00

    If I remember correctly for .Net 6 projects you must add the published items instead of primary output for the installer.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.