Application exporting as DLL instead of EXE

Hemanth B 886 Reputation points
2021-06-20T04:58:52.733+00:00

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

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

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,846 Reputation points
    2021-06-20T10:30:44.257+00:00

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

    https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file

    0 comments No comments