Application exporting as DLL instead of EXE

Hemanth B 886 Reputation points

Hi, I created a win form app in C# and added the Setup Project to the app. I added the primary output to the application folder in the file system of the Setup Project. But when I right click the primary output and click on Outputs, it shows these two files:
Mycalc.dll and Mycalc.runtimeconfig.json instead of .exe and .exe.config. Installing the application also installs the application as .DLL instead of .EXE. Pls help! I couldn't find anything that can help me in the web. My Project is .net 5.0

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.
10,218 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,846 Reputation points

    Try publishing the .net 5 app if you want an exe.

    0 comments No comments