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

ความคิดเห็น • 105

  • @muhammedozen2699
    @muhammedozen2699 3 ปีที่แล้ว +24

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

    • @hacked101
      @hacked101  3 ปีที่แล้ว +2

      Glad it helped

  • @mjivonsp3477
    @mjivonsp3477 3 ปีที่แล้ว +2

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

    • @hacked101
      @hacked101  3 ปีที่แล้ว +1

      You are welcome

  • @gabek_
    @gabek_ 3 ปีที่แล้ว +7

    Amazing video, thank's man. 🔥🔥

    • @hacked101
      @hacked101  3 ปีที่แล้ว

      You are welcome

  • @supunsatheendre2466
    @supunsatheendre2466 2 ปีที่แล้ว +3

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

    • @hacked101
      @hacked101  2 ปีที่แล้ว

      You are welcome

  • @Andimax11
    @Andimax11 7 หลายเดือนก่อน +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  7 หลายเดือนก่อน +2

      Please make sure you build the project

  • @ahmadswailemChannel
    @ahmadswailemChannel ปีที่แล้ว +1

    short and easy, very useful
    Thank you!

    • @hacked101
      @hacked101  ปีที่แล้ว

      You are welcome

  • @nandopookey9195
    @nandopookey9195 8 หลายเดือนก่อน +1

    Thank you sir

    • @hacked101
      @hacked101  8 หลายเดือนก่อน

      You are welcome

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

  • @Mohamed-Alii
    @Mohamed-Alii 3 ปีที่แล้ว +4

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

  • @DreamLuckStudios
    @DreamLuckStudios 2 ปีที่แล้ว

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

  • @danielolah564
    @danielolah564 2 ปีที่แล้ว

    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.

  • @pug.5736
    @pug.5736 2 ปีที่แล้ว +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  2 ปีที่แล้ว

      What version of visual studio are you using

    • @pug.5736
      @pug.5736 2 ปีที่แล้ว

      @@hacked101 Visual Studio 2019

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

  • @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 2 ปีที่แล้ว

      what options did u use when u installed visual studio?

  • @bennguyen1313
    @bennguyen1313 8 หลายเดือนก่อน +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?!

    • @hacked101
      @hacked101  8 หลายเดือนก่อน

      What project?

  • @sciutogreg
    @sciutogreg ปีที่แล้ว +2

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

  • @VORP125
    @VORP125 2 ปีที่แล้ว +9

    There is no "publish" button for me (

  • @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 th-cam.com/video/rMr3ejOEiDY/w-d-xo.html thanks

    • @wii3521
      @wii3521 6 หลายเดือนก่อน

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

  • @SajidAli-ke6ue
    @SajidAli-ke6ue ปีที่แล้ว +1

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

    • @hacked101
      @hacked101  ปีที่แล้ว

      Watch my video on MS SQL Server Database project deployment

  • @TheKineticSoftwareCompan-ti7hs
    @TheKineticSoftwareCompan-ti7hs 2 หลายเดือนก่อน

    Thank you so much

    • @hacked101
      @hacked101  2 หลายเดือนก่อน

      You are welcome

  • @pavelpaja07
    @pavelpaja07 4 หลายเดือนก่อน

    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  4 หลายเดือนก่อน

      Make sure you reference the image in the correct folder

  • @marianahidalgosandoval2184
    @marianahidalgosandoval2184 ปีที่แล้ว

    Thank you!

    • @hacked101
      @hacked101  ปีที่แล้ว

      You are welcome

  • @sameeraboppana4072
    @sameeraboppana4072 2 ปีที่แล้ว

    Thank you. Bullseye

    • @hacked101
      @hacked101  2 ปีที่แล้ว

      You are welcome

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

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

  • @goodplayer7048
    @goodplayer7048 3 ปีที่แล้ว +1

    Where do I find "Build" button

    • @hacked101
      @hacked101  3 ปีที่แล้ว

      Right click the project

  • @freelancewebdeveloper3073
    @freelancewebdeveloper3073 3 ปีที่แล้ว

    Thanks for the video

    • @hacked101
      @hacked101  3 ปีที่แล้ว

      You are welcome

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

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

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

  • @_royaly
    @_royaly 3 ปีที่แล้ว

    Thanks you for the vidéo

    • @hacked101
      @hacked101  3 ปีที่แล้ว

      You are welcome

  • @halalboy69-m7m
    @halalboy69-m7m 3 ปีที่แล้ว

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

  • @discussions.
    @discussions. 3 ปีที่แล้ว

    What if you already had the project?

    • @hacked101
      @hacked101  3 ปีที่แล้ว

      You go through the same process regardless

    • @discussions.
      @discussions. 3 ปีที่แล้ว

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

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

  • @IMTILL360
    @IMTILL360 2 ปีที่แล้ว

    thank's man.

    • @hacked101
      @hacked101  2 ปีที่แล้ว

      You are welcome

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

  • @frog2818
    @frog2818 3 ปีที่แล้ว

    Hi, good video :)

  • @whoman0385
    @whoman0385 2 ปีที่แล้ว

    im on windows 11 they changed pretty much everything pls help

  • @WxnterIsDead
    @WxnterIsDead 3 ปีที่แล้ว

    how do you get the solution explorer?

    • @hacked101
      @hacked101  3 ปีที่แล้ว

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

    • @WxnterIsDead
      @WxnterIsDead 3 ปีที่แล้ว

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

  • @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 2 ปีที่แล้ว

      @@hacked101 It's actually the same in vs2022

  • @juko9458
    @juko9458 3 ปีที่แล้ว

    My pushing its not working

    • @hacked101
      @hacked101  3 ปีที่แล้ว

      Please be more specific

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

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

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

  • @carz7777
    @carz7777 ปีที่แล้ว

    i want to be this man when i grow up