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

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,219 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,074 questions
{count} votes

Accepted answer
  1. RLWA32 46,461 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.