Generate EXE File from C# Project in Visual Studio 2019

Поділитися
Вставка
  • Опубліковано 27 гру 2020
  • 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
  • Наука та технологія

КОМЕНТАРІ • 104

  • @muhammedozen2699
    @muhammedozen2699 3 роки тому +24

    You're amazing mate. That's something I had been looking for. Very useful.

  • @deeeew100
    @deeeew100 Рік тому +1

    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?

  • @carlosde8707
    @carlosde8707 3 роки тому +6

    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

    • @hacked101
      @hacked101  3 роки тому +1

      Gonna have a look later on, and make a video on that if possible, you are welcome

  • @gabek_
    @gabek_ 3 роки тому +7

    Amazing video, thank's man. 🔥🔥

  • @ahmadswailemChannel
    @ahmadswailemChannel Рік тому +1

    short and easy, very useful
    Thank you!

  • @sciutogreg
    @sciutogreg Рік тому +1

    Two questions: How can I sign the file EXE with a certificate? Can I create a certificate or I must buy it?

  • @Mohamed-Alii
    @Mohamed-Alii 3 роки тому +4

    it doesn't run with Launcher.exe!!! why?

  • @danielolah564
    @danielolah564 Рік тому

    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.

  • @bennguyen1313
    @bennguyen1313 6 місяців тому +1

    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?!

  • @pug.5736
    @pug.5736 Рік тому +1

    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.

    • @hacked101
      @hacked101  Рік тому

      What version of visual studio are you using

    • @pug.5736
      @pug.5736 Рік тому

      @@hacked101 Visual Studio 2019

  • @mjivonsp3477
    @mjivonsp3477 3 роки тому +1

    Now I can publish my TicTacToe :))). Thanks!

  • @supunsatheendre2466
    @supunsatheendre2466 2 роки тому +3

    Superb.
    Great work .
    Keep it up...🙏🙏🙏🙏

  • @Andimax11
    @Andimax11 5 місяців тому +1

    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.

    • @hacked101
      @hacked101  5 місяців тому +1

      Please make sure you build the project

  • @thanasisathanasi4965
    @thanasisathanasi4965 2 роки тому +2

    When I click publish the only option I get is a location in a folder. Nothing more. Completely different from what it is presented

    • @DreamLuckStudios
      @DreamLuckStudios Рік тому

      what options did u use when u installed visual studio?

  • @DreamLuckStudios
    @DreamLuckStudios Рік тому

    explained exactly what i tried to get an answer on, vere very niceee

  • @Gorkid0
    @Gorkid0 3 роки тому

    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?

    • @hacked101
      @hacked101  3 роки тому +2

      Run visual studio with admin privileges

  • @Grafiyas
    @Grafiyas Рік тому +1

    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?!

    • @hacked101
      @hacked101  Рік тому

      watch my new video on this topic ua-cam.com/video/rMr3ejOEiDY/v-deo.html thanks

    • @wii3521
      @wii3521 4 місяці тому

      Same problem bro. Did you manage to solve the problem? If yes please teach me

  • @SajidAli-ke6ue
    @SajidAli-ke6ue 10 місяців тому +1

    How create exc file with db sql .net core project .. I need your help

    • @hacked101
      @hacked101  10 місяців тому

      Watch my video on MS SQL Server Database project deployment

  • @freelancewebdeveloper3073
    @freelancewebdeveloper3073 3 роки тому

    Thanks for the video

  • @marianahidalgosandoval2184
    @marianahidalgosandoval2184 Рік тому

    Thank you!

  • @nandopookey9195
    @nandopookey9195 5 місяців тому +1

    Thank you sir

  • @TheKineticSoftwareCompan-ti7hs
    @TheKineticSoftwareCompan-ti7hs 5 днів тому

    Thank you so much

  • @_royaly
    @_royaly 3 роки тому

    Thanks you for the vidéo

  • @sameeraboppana4072
    @sameeraboppana4072 2 роки тому

    Thank you. Bullseye

  • @pavelpaja07
    @pavelpaja07 2 місяці тому

    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

    • @hacked101
      @hacked101  2 місяці тому

      Make sure you reference the image in the correct folder

  • @SquidSnipes
    @SquidSnipes 3 роки тому +1

    hey i can't locate the solution explorer in my visual studio is there an option to turn it on?

    • @hacked101
      @hacked101  3 роки тому +1

      On the top menu, click on view and then you should find the solution explorer

  • @goodplayer7048
    @goodplayer7048 3 роки тому +1

    Where do I find "Build" button

    • @hacked101
      @hacked101  3 роки тому

      Right click the project

  • @zimmerdude
    @zimmerdude 3 роки тому

    I mean like you don't have to save it. You can open it and then pin it to taskbar.

  • @Miisile
    @Miisile 3 роки тому +1

    Will you be putting this up as something I can watch later? (Please) :-)

    • @hacked101
      @hacked101  3 роки тому +2

      Is already up, premieres tomorrow though

  • @frog2818
    @frog2818 3 роки тому

    Hi, good video :)

  • @IMTILL360
    @IMTILL360 2 роки тому

    thank's man.

  • @whoman0385
    @whoman0385 2 роки тому

    im on windows 11 they changed pretty much everything pls help

  • @CrossyChainsaw
    @CrossyChainsaw 3 роки тому

    if i double click on the launcher nothing happens

    • @hacked101
      @hacked101  3 роки тому

      Make sure your program runs before generating the executable file

  • @defacube
    @defacube Рік тому

    for some reason it only saves the setup for me. i guess it still runs atleast

    • @hacked101
      @hacked101  Рік тому

      Don't get you though

    • @defacube
      @defacube Рік тому +1

      @@hacked101 i was in the wrong directory lol it saved everything

  • @discussions.
    @discussions. 2 роки тому

    What if you already had the project?

    • @hacked101
      @hacked101  2 роки тому

      You go through the same process regardless

    • @discussions.
      @discussions. 2 роки тому

      @@hacked101 this visual studio is outdated anyway I can’t even find where to publish it

  • @Nekotico
    @Nekotico Рік тому +1

    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 ...

    • @hacked101
      @hacked101  Рік тому +2

      Save the text inside the project, maybe you create a folder inside the project

    • @Nekotico
      @Nekotico Рік тому +1

      @@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

    • @hacked101
      @hacked101  Рік тому +1

      @@Nekotico you are welcome

  • @VORP125
    @VORP125 Рік тому +9

    There is no "publish" button for me (

  • @WxnterIsDead
    @WxnterIsDead 2 роки тому

    how do you get the solution explorer?

    • @hacked101
      @hacked101  2 роки тому

      On the top most menu, click on the view and you should find solution explorer

    • @WxnterIsDead
      @WxnterIsDead 2 роки тому

      @@hacked101 Yeah I realized Visual Studio Code doesnt have that and I downloaded Visual Studio I was using VSC when I asked this

  • @diraneserges6076
    @diraneserges6076 Рік тому

    I Can send the Exetable to friends. it will work on Pc ??

    • @hacked101
      @hacked101  Рік тому +1

      Sure

    • @diraneserges6076
      @diraneserges6076 Рік тому

      @@hacked101 i send only this file oder the folder that contain executable file

  • @xuan625
    @xuan625 3 роки тому

    how to call c# exe file in java?

    • @hacked101
      @hacked101  3 роки тому +1

      Will look into that shortly, thanks

    • @xuan625
      @xuan625 3 роки тому

      @@hacked101 thank you

  • @juko9458
    @juko9458 2 роки тому

    My pushing its not working

    • @hacked101
      @hacked101  2 роки тому

      Please be more specific

  • @unknownanonymous8087
    @unknownanonymous8087 2 роки тому

    I cant find the publish button

    • @hacked101
      @hacked101  2 роки тому

      Will make a video on visual studio 2022, please watch the video carefully if you are still using the 2019 version

    • @iiTzMemo
      @iiTzMemo Рік тому

      @@hacked101 It's actually the same in vs2022

  • @analisa4825
    @analisa4825 3 роки тому

    Hi I need small help well you help

    • @hacked101
      @hacked101  3 роки тому

      Please put your question below

    • @analisa4825
      @analisa4825 3 роки тому

      @@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

    • @hacked101
      @hacked101  3 роки тому

      Contact via Twitter, is on the channel page, the about section

  • @tismoineau2646
    @tismoineau2646 3 роки тому

    Does it execute the code on the pc or just compiling?

    • @hacked101
      @hacked101  3 роки тому

      Once you convert to exe file, you can run the app on your PC

    • @tismoineau2646
      @tismoineau2646 3 роки тому

      @@hacked101 ok but the program is not launch while the compiling ( srry im french my english is trash)

    • @hacked101
      @hacked101  3 роки тому

      @@tismoineau2646 try to debug it first, you might find issues, if I get you right though

    • @tismoineau2646
      @tismoineau2646 3 роки тому

      @@hacked101 ok thanks

  • @carz7777
    @carz7777 Рік тому

    i want to be this man when i grow up