c# compile into an exe
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true
c# compile into an exe
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true
how to make a .exe file in c# visual studio
If your program is a UI (Windows Forms, Console or WPF) project, it is created
as soon as you click start when you BUILD your project.
This will produce an EXECUTABLE ( The .EXE file )
You can find it in the Bin folder of your solutions.
(depending on the version you have also to save the project first)
In other cases you cannot build an Exe file but get a DLL,
for instance in the case of a Dynamic Link Library.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us