Visual Studio Installer Project doesn't include my software exe

64 views Asked by At

I wrote a C# windows desktop software. I added an installer for it. The problem is the Setup project only includes a dll of my software in its Primary output, it doesn't include my software exe.

My Visual Studio is Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.3.6.

Microsoft .Net Framework Version 4.8.09032

I add the setup project as the following steps: Right click on the Solution -> Add -> new project -> Search Setup -> Setup Wizard

Next

Fill a setup project name

Create

Setup Wizard

Next

Create a setup for a Windows application

Next

Select "Primary output from MyAppName"

Next

Next

Finish

The main properties of my software project:

In the Application section:

Output type: Windows Application

Target framework: .Net 6.0

Target OS: Windows

Target OS version: 7.0

Enable Windows Forms for this project.

Assembly name: $(MSBuildProjectName) MySoftwareName

In the Build section:

Output:

Base output path: bin\

Base intermediate output path: obj\

Thank you for your help.

0

There are 0 answers