![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2006
Posts: 23
Rep Power: 0
![]() |
.cs to .exe
How do I turn a .cs into a .exe executable file???
__________________
classic-chick.net |
|
|
|
|
|
#2 |
|
Professional Programmer
|
You press F5 in order to run the program. You'll find the *.exe in the bin -> Debug folder if i remember correctly.
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jan 2006
Posts: 23
Rep Power: 0
![]() |
Thank you!
__________________
classic-chick.net |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
But if you want a release version then you can click on "Build" and then on "Configuration Manager" and select "Release" instead of "Debug".
Changing it into "Release" might make it faster and smaller, but if you are wanting to debug it then change your configuration back to "Debug".
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
If you right-click the toolbars and turn on the Debug toolbar, you also get a little drop-down box so you can quickly switch between Debug and Release modes.
|
|
|
|
|
|
#6 |
|
Programmer
Join Date: Nov 2006
Location: Kosovė/Prishtinė
Posts: 47
Rep Power: 0
![]() |
Or you can do right from your command prompt, but first you must edit your Environment variables on your System Properties in Advanced tab then find where `Path` is located and try adding this to the end:
;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 Note: that ; is the separator between other paths included in Path environment variable. and then you can compile your .cs file like shown below: csc /target:exe yourFile.cs P.S: .NET Framework version can vary, for that reason i marked Bold and Italic. Regards, Milot |
|
|
|
|
|
#7 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 852
Rep Power: 4
![]() |
Milot, there is no need to bump 8 month old threads. You can probably assume that the original poster has either solved the problem, or given up on it. the 6 week old thread yesterday was bad enough, but 8 months is way too long.
|
|
|
|
|
|
#8 |
|
Programmer
Join Date: Nov 2006
Location: Kosovė/Prishtinė
Posts: 47
Rep Power: 0
![]() |
I'm sorry because I didn't look at the date! Now i looked at it and I'm sorry for this but I a little enthusiast for helping people so that's my mistake, it wont happen again.
|
|
|
|
|
|
#9 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 852
Rep Power: 4
![]() |
Hey, no problem. Its always good to have more people helping.
Welcome to the forums! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|