question

HemanthB-9452 avatar image
0 Votes"
HemanthB-9452 asked lextm commented

Application exporting as DLL instead of EXE

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

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

https://docs.microsoft.com/en-us/dotnet/desktop/winforms/migration/?view=netdesktop-5.0 You are doing .NET Core development, so there are tons of basic concepts you should learn. .exe.config is no longer the way to store application settings on .NET Core.

0 Votes 0 ·

1 Answer

vb2ae avatar image
0 Votes"
vb2ae answered

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

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.