Generate EXE File from C# Project in Visual Studio 2022

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome back once again in this video we'll look at how to generate an executable files from a project inside a visual studio 2022 but before we get started please make sure you subscribe to the channel if you haven't so let's get into it then so what is really an executable file an exp 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 so by deploying an application service or component you distribute it for for installation on other computers devices services in the cloud or in the cloud you choose the appropriate method in visual studio for the type of deployment that you need so enough of all in Turkey so let's get into the real stuff here so as you can see on the screen I've got a visual studio 2022 open so to get us started let's create a new project so we come inside as well click the file new products so as you can see on the screen I've actually selected c-sharp language so you could choose SSH Visual Basic and whatnot yeah so let's go with the C sharp language and let's select the console app here click on next yeah obviously you can configure the project details but we're not going to look too much into that so let's click on the nest again so here you can select what framework that you want to Target it's real it's not important also so click on the create so this might actually take a while okay obviously we've got it created so as you can see here now is a very simple console app C sharp console yeah console app obviously is the command line application so what I'm gonna do here is I'm just going to add on I'm just going to add console.readline only so we're going to add console the real line yeah so to be able to publish this or to be able to be able to generate an executable from this from this project first of all let's build a project so once the build is finished as you can see the build is finished successfully so you right click the project so if we go down here as you can see we've got publish here so we click on the publish so here this is the published dialogue yeah so here first first bit here we've got Microsoft Azure so you can publish your application to the Microsoft Cloud and we've got click ones so publish your application with the click one we'll look we look into we'll look down into details on another video and then we've got Docker container registry so this actually helps you to publish your application to any supported container registry that works with Docker images and this bit is folder so you can publish your application to a local folder or file share are you can import profile so Imports your published status to deploy your app so for this video we will look we will use the the folder and publish it into a local file system yeah so we click on the folder they will click on the nest so here we actually prompted with the click once and a folder so this obviously will help you to publish the application with click once so this will actually bypass all the necessary settings or configurations right or you can select the folder again and then we click on the next so here this this time this part here this way you actually select where you want the application to be published I mean or what what folder that you want this application you can browse it you can Browse by click on the browser and then you can select what folder that you want the application to be published so let's click on the documents so here on the document side oh let's click on that desktop yeah and then make a new folder so let's create a new folder and let's call this folder app so let's call this folder let me rename it let's call it up so let's select the app here and then click ok so here obviously under the desktop you've got a folder called app here this is where you want the application and to be stored yeah so after that I will click on the Finish so as you can see yeah we've got the published so you can select this this box you have to automatically close when uh when it's succeeded but it's not really important yeah so let's close this so as you can see here now it's got ready to publish yeah so we've got all the setup completed and the application is ready to publish yeah so what we do is we click on this bit here publish so as you can see here we've got the publishing completed yeah so what we do next is we actually select the folder where the application has been published yeah so you can clip you can click the the link directly from here or you can select the folder so this will actually open the folder so as you can see here on the desktop we've got the folder that we created app and then we've got a application here so as you can see it's a very simple stuff so here we've got a bunch of files here but what we're actually looking for is the application here so this is this the application that has been actually published yeah so to be able to open the application we can click on it you can double click on that on the application extension so first of all let's look at the properties so right click the application and then click on the properties yeah so if we look at it here the type of file is now dot exe are not executable yeah so this means that the consular2 is an executable file so let's close this bit here and double click it so once you click it this will actually this will actually run the program so as you can see here we've got the program around the hello world so once we come back to the visual studio and we open the program file yeah we've got hello world here yeah so basically we've been able to generate an executable from this project yeah so as you can see it's a very simple stuff yeah not too much complications so I'm just going to leave it here so you can go ahead and try with with some other applications like WTF Wind forms and whatnot yeah and I hope this actually this video actually helps you and once again make sure you subscribe if you haven't and have a lovely morning evening afternoon wherever you are peace
Info
Channel: Hacked
Views: 19,655
Rating: undefined out of 5
Keywords: visual studio, microsoft visual studio, c# exe file, c# executable file, exe files, c# project to exe, c++ project to exe, python project to exe, generate exe in visual studio, publish console application c#, c# deployment, exe project visual studio, c#, c++, python, executable in c#, .net exe, visual studio click once, visual studio clickonce deployment, exe im visual studio 2022, visual studio 2022 deployment project
Id: rMr3ejOEiDY
Channel Id: undefined
Length: 8min 31sec (511 seconds)
Published: Fri Mar 31 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.