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

Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,861 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

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.