How do I save a visual C# project as one single .exe file?

Discussion in 'Programming General' started by hampe-92, Sep 20, 2008.

How do I save a visual C# project as one single .exe file?
  1. Unread #1 - Sep 20, 2008 at 9:30 AM
  2. hampe-92
    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0

    hampe-92 Forum Addict

    How do I save a visual C# project as one single .exe file?

    Hi
    I wonder how do I save my project as one single .exe file when im done with it? i mean so anyone can open the program... thx in advance
     
  3. Unread #2 - Sep 20, 2008 at 9:37 AM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    How do I save a visual C# project as one single .exe file?

    When you debug your application, it is already compiled. Either in release or debugging mode, it compiles nonetheless.

    Open your Documents folder. Open the folder called "Visual Studio 200*" (* being the version). Open the folder called Projects, and open the folder named after your project. Open up the directory named bin, and then in either a folder called "release" (which is preferred for distribution) or "debug" you will find your application executable.
     
  5. Unread #3 - Sep 20, 2008 at 11:06 AM
  6. hampe-92
    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0

    hampe-92 Forum Addict

    How do I save a visual C# project as one single .exe file?

    ok tyvm :)

    one more thing, you said either in the "Release" or "Debug" folder... whats the difrents? cause i only have one folder in the "Bin" folder, and its called "Debug".
     
  7. Unread #4 - Sep 20, 2008 at 12:37 PM
  8. BigBwoi2001
    Joined:
    Jul 4, 2008
    Posts:
    54
    Referrals:
    0
    Sythe Gold:
    0

    BigBwoi2001 Member

    How do I save a visual C# project as one single .exe file?

    Doesn't make a difference, I guess for OCD type of people select Release when its the final build and leave as debug while checking for problems in code. Either way I believe it compiles the same just to a different folder.
     
  9. Unread #5 - Sep 20, 2008 at 12:39 PM
  10. hampe-92
    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0

    hampe-92 Forum Addict

    How do I save a visual C# project as one single .exe file?

    ok... what means OCD?:p
     
  11. Unread #6 - Sep 20, 2008 at 1:37 PM
  12. BigBwoi2001
    Joined:
    Jul 4, 2008
    Posts:
    54
    Referrals:
    0
    Sythe Gold:
    0

    BigBwoi2001 Member

    How do I save a visual C# project as one single .exe file?

    http://en.wikipedia.org/wiki/Obsessive-compulsive_disorder


    Obsessive Compulsive Disorder.
    Where everything has to be done perfect. You count your steps before getting in your car, if you do 1 more step by accident u walk all the way back and start over. I saw it on MTV lol.
     
  13. Unread #7 - Sep 20, 2008 at 6:32 PM
  14. hampe-92
    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0

    hampe-92 Forum Addict

    How do I save a visual C# project as one single .exe file?

    XD lolz okies thx
     
  15. Unread #8 - Sep 20, 2008 at 9:04 PM
  16. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    How do I save a visual C# project as one single .exe file?

    Actually, the release configuration has a few differences to debug. You will notice in the debug directory that there is some random files (like application.vshost.exe and so on). That is the controlled version of the program from within the IDE. In release, these files are not compiled with your application. There are probably a couple of optimizations used when compiling release mode making it fit for release.

    Long story short, when releasing something, use the release configuration to build your program. This should be found next to the little green arrow to run your program if I'm not mistaken.
     
  17. Unread #9 - Sep 21, 2008 at 3:45 AM
  18. hampe-92
    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0

    hampe-92 Forum Addict

    How do I save a visual C# project as one single .exe file?

    ok tyvm for your help:)
     
< Htaed Searcher | An Idea of mine >

Users viewing this thread
1 guest


 
 
Adblock breaks this site