Generate EXE File from C# Project in Visual Studio 2019
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2024
- Generate EXE from C# Project in Visual Studio 2019
An EXE file contains an executable program for Windows. EXE is short for "executable," and it is the standard file extension used by Windows programs. For many Windows users, EXE files are synonymous with Windows programs, making ".exe" one of the most recognizable file extensions.
By deploying an application, service, or component, you distribute it for installation on other computers, devices, or servers, or in the cloud. You choose the appropriate method in Visual Studio for the type of deployment that you need. (Many app types support other deployment tools, such as command-line deployment or NuGet, that aren't described here.
You can use the Publish Wizard to set the basic settings for publishing your application. This includes the following publishing properties:
Publishing Folder Location - where Visual Studio will copy the files (local computer, network file share, FTP server, or Web site)
Installation Folder Location - where end users will install from (network file share, FTP server, Web site, CD/DVD)
Online or Offline availability - if end users can access the application with or without a network connection
You're amazing mate. That's something I had been looking for. Very useful.
Glad it helped
Now I can publish my TicTacToe :))). Thanks!
You are welcome
Amazing video, thank's man. 🔥🔥
You are welcome
Superb.
Great work .
Keep it up...🙏🙏🙏🙏
You are welcome
This doesn't work for me. Following your steps and then publishing seems to do absolutely nothing. Despite the terminal stating "Publish Success", the folder is completely empty.
Please make sure you build the project
short and easy, very useful
Thank you!
You are welcome
Thank you sir
You are welcome
You have very helpful tutorials. I'm now trying to build a huge project on an .exe I wrote, but I simply don´t find the way, I compiled already as Debug, Release, and looked in every single folder for the .exe. I tried also publishing it, but I got this message "The command is not applicable for the selected project." and then the publish option disappears. I’m not sure if there is some extension, I haven´t installed yet. I have already run as admin, and installed "MS VS Installer Projects". I tried on VS2017 is enterprise ed. and on VS2019 is community. My program is written in C++ and C, and also tried with a dummy program (std::cout
Gonna have a look later on, and make a video on that if possible, you are welcome
it doesn't run with Launcher.exe!!! why?
explained exactly what i tried to get an answer on, vere very niceee
No doubt
Nice video mate very helpfull. BTW what is that sound at 5:55 ? it sounds like you just headed the mic? What is that? Thank for the video and the answer.
Why is it that when I click on Publish, I get a completely different menu ? I get a "Publish Wizard" with much less settings as to what you have in the video.
What version of visual studio are you using
@@hacked101 Visual Studio 2019
Can I take only setup file and move to some other location to run my program or do I have to move it with all the other files?
When I click publish the only option I get is a location in a folder. Nothing more. Completely different from what it is presented
what options did u use when u installed visual studio?
Is it possible to debug when the Solution Configuration is set to Release (platform is 32-bit x86)?
Trying to step thru the code when in the Release config, but it goes straight to running the exe, stepping and breakpoints are ignored?!
What project?
Two questions: How can I sign the file EXE with a certificate? Can I create a certificate or I must buy it?
buy
There is no "publish" button for me (
Me too
Hello, i have a problem with my vs2019. My publish wizard tab is different. it doesn't have clickonce and other options. It's a white page like the old versions. How do i fix this ?! i tried reinstalling it, but to no avail have any idea what should I do?!
watch my new video on this topic th-cam.com/video/rMr3ejOEiDY/w-d-xo.html thanks
Same problem bro. Did you manage to solve the problem? If yes please teach me
How create exc file with db sql .net core project .. I need your help
Watch my video on MS SQL Server Database project deployment
Thank you so much
You are welcome
amazing video, but i have a problem, when i tried setup.exe, it installed application, but i have some other sound file and pictures in debug, but it won't load, iam doing it in VS222 in c# in WinForms
Make sure you reference the image in the correct folder
Thank you!
You are welcome
Thank you. Bullseye
You are welcome
i have a .txt linked on the project, its set up as copy always, inside the project, but only works on my pc, on others pc isnt working....im so sad cuz its working but can take it out as exe on others pc ...
Save the text inside the project, maybe you create a folder inside the project
@@hacked101 in fact I was missing a folder that I was making a call from code....and I forgot to add the folder on the project 😅, it's all fine now, thanks for the answer
@@Nekotico you are welcome
it says "Severity Code Description Project File Line Suppression State
Error ClickOnce does not support the request execution level 'requireAdministrator'."(Cuz i want it to requireAdmin) what now?
Run visual studio with admin privileges
Where do I find "Build" button
Right click the project
Thanks for the video
You are welcome
Will you be putting this up as something I can watch later? (Please) :-)
Is already up, premieres tomorrow though
for some reason it only saves the setup for me. i guess it still runs atleast
Don't get you though
@@hacked101 i was in the wrong directory lol it saved everything
hey i can't locate the solution explorer in my visual studio is there an option to turn it on?
On the top menu, click on view and then you should find the solution explorer
Thanks you for the vidéo
You are welcome
I mean like you don't have to save it. You can open it and then pin it to taskbar.
ok
What if you already had the project?
You go through the same process regardless
@@hacked101 this visual studio is outdated anyway I can’t even find where to publish it
if i double click on the launcher nothing happens
Make sure your program runs before generating the executable file
thank's man.
You are welcome
I Can send the Exetable to friends. it will work on Pc ??
Sure
@@hacked101 i send only this file oder the folder that contain executable file
Hi, good video :)
No doubt
im on windows 11 they changed pretty much everything pls help
?
how do you get the solution explorer?
On the top most menu, click on the view and you should find solution explorer
@@hacked101 Yeah I realized Visual Studio Code doesnt have that and I downloaded Visual Studio I was using VSC when I asked this
I cant find the publish button
Will make a video on visual studio 2022, please watch the video carefully if you are still using the 2019 version
@@hacked101 It's actually the same in vs2022
My pushing its not working
Please be more specific
how to call c# exe file in java?
Will look into that shortly, thanks
@@hacked101 thank you
Does it execute the code on the pc or just compiling?
Once you convert to exe file, you can run the app on your PC
@@hacked101 ok but the program is not launch while the compiling ( srry im french my english is trash)
@@tismoineau2646 try to debug it first, you might find issues, if I get you right though
@@hacked101 ok thanks
Hi I need small help well you help
Please put your question below
@@hacked101 hi have created a excitable file but it is not working suspend error after exciting it can you give your email is that I can show the error and my program code thanks for helping
Contact via Twitter, is on the channel page, the about section
i want to be this man when i grow up
fr?
ong
No doubt