If I remember correctly for .Net 6 projects you must add the published items instead of primary output for the installer.
Visual Studio Installer Projects creates dll instead of exe
Dave Gray
586
Reputation points
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.