|
-
Jun 5th, 2006, 02:26 AM
#1
Thread Starter
Lively Member
[1.0/1.1] Which EXE after compile/build?
Hi all,
when using MS Visual C#.net, after i make a Build -> Build <project name>, it is purpose to compile my code to an exe file, right? i realise that there are exe file in the bin and obj, so which is the correct one? y is there 2 exe file in the 1st place? hope someone can ans this query. thks in advance.
longwar
-
Jun 5th, 2006, 02:39 AM
#2
Re: [1.0/1.1] Which EXE after compile/build?
You use the bin folder. The obj folder is for intermediate files created during the build process.
-
Jun 5th, 2006, 03:21 AM
#3
Thread Starter
Lively Member
Re: [1.0/1.1] Which EXE after compile/build?
hi all,
i just realised there is a Debug and Release folder inside bin folder. so which one is the correct one again this time?
longwar
-
Jun 5th, 2006, 04:08 AM
#4
Re: [1.0/1.1] Which EXE after compile/build?
What would you guess? The Debug folder is for debugging. The Release folder is for releasing.
-
Jun 5th, 2006, 04:13 AM
#5
Re: [1.0/1.1] Which EXE after compile/build?
 Originally Posted by jmcilhinney
What would you guess? The Debug folder is for debugging. The Release folder is for releasing.
Sherlock!
Also, which one is newer depends which build configuration you have active.
-
Jun 5th, 2006, 04:23 AM
#6
Thread Starter
Lively Member
Re: [1.0/1.1] Which EXE after compile/build?
-
Jun 5th, 2006, 10:04 AM
#7
Hyperactive Member
Re: [1.0/1.1] Which EXE after compile/build?
Is there any need for the obj folder?
-
Jun 5th, 2006, 12:53 PM
#8
Re: [1.0/1.1] Which EXE after compile/build?
 Originally Posted by JenniferBabe
Is there any need for the obj folder?
it's created during compilation you can delete it, it won't affect the application
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jun 5th, 2006, 01:40 PM
#9
Hyperactive Member
Re: [1.0/1.1] Which EXE after compile/build?
 Originally Posted by ComputerJy
it's created during compilation you can delete it, it won't affect the application
tHANKS 
One more question. Its now I'm reading the post I realised. The release folder. What is that for? I never use it, I always use the .exe file in the debug folder even for procuring software. What is the purpose of that folder : release after you compile a setup file?
-
Jun 5th, 2006, 02:29 PM
#10
Re: [1.0/1.1] Which EXE after compile/build?
 Originally Posted by JenniferBabe
One more question. Its now I'm reading the post I realised. The release folder. What is that for? I never use it, I always use the .exe file in the debug folder even for procuring software. What is the purpose of that folder : release after you compile a setup file?
jmcilhinney already answered this for you
 Originally Posted by jmcilhinney
What would you guess? The Debug folder is for debugging. The Release folder is for releasing.
-
Jun 5th, 2006, 02:37 PM
#11
Re: [1.0/1.1] Which EXE after compile/build?
 Originally Posted by JenniferBabe
tHANKS
One more question. Its now I'm reading the post I realised. The release folder. What is that for? I never use it, I always use the .exe file in the debug folder even for procuring software. What is the purpose of that folder : release after you compile a setup file?
When you compile in the "debug" mode, a debug database is generated so in case any errors occur, you can trace them and debug them.
while the "release" mode only builds the executable file
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jun 5th, 2006, 05:49 PM
#12
Re: [1.0/1.1] Which EXE after compile/build?
Also, the Debug executable created is larger than the Release executable because it contains extra information required for debugging. This also means that it will run slower, plus if an unhandled exception is thrown its first choice will be to to debug the app. You don't want your end users debugging your application. If you're releasing a finished product then you use the Release build. If you're debugging your project then you use the Debug build, which the IDE does automatically.
-
Jun 6th, 2006, 11:00 AM
#13
Hyperactive Member
Re: [1.0/1.1] Which EXE after compile/build?
I just did a test here, and apparently my Release folder is empty after compiling my setup. The debug folder containts the .msi, .ini and .exe file. Am I doing something wrong? Why is the release folder empty?
-
Jun 6th, 2006, 11:26 AM
#14
Re: [1.0/1.1] Which EXE after compile/build?
You need to set the Build configuration to Release before you get a release exe.
-
Jun 6th, 2006, 11:29 AM
#15
Hyperactive Member
Re: [1.0/1.1] Which EXE after compile/build?
 Originally Posted by penagate
You need to set the Build configuration to Release before you get a release exe.
how do you do that?
-
Jun 6th, 2006, 11:31 AM
#16
Re: [1.0/1.1] Which EXE after compile/build?
Sorry I can't remember. I did it in VS Pro but I only have the Express Ed's here. I think its under the Build menu.
-
Jun 6th, 2006, 11:35 AM
#17
Re: [1.0/1.1] Which EXE after compile/build?
At the top of the screen next to the play button it'll say Debug or Release. Just select it there. Or right click your project, select properties and you can do it from there.
I would suggest buying a C# book as it's good to read up and learn how to do these things.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|