[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
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.
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
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.
Re: [1.0/1.1] Which EXE after compile/build?
Quote:
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.
Re: [1.0/1.1] Which EXE after compile/build?
Re: [1.0/1.1] Which EXE after compile/build?
Is there any need for the obj folder?
Re: [1.0/1.1] Which EXE after compile/build?
Quote:
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
Re: [1.0/1.1] Which EXE after compile/build?
Quote:
Originally Posted by ComputerJy
it's created during compilation you can delete it, it won't affect the application
tHANKS :thumb:
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?
Re: [1.0/1.1] Which EXE after compile/build?
Quote:
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
Quote:
Originally Posted by jmcilhinney
What would you guess? The Debug folder is for debugging. The Release folder is for releasing.
Re: [1.0/1.1] Which EXE after compile/build?
Quote:
Originally Posted by JenniferBabe
tHANKS :thumb:
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
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.
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?
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.
Re: [1.0/1.1] Which EXE after compile/build?
Quote:
Originally Posted by penagate
You need to set the Build configuration to Release before you get a release exe.
how do you do that?
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.
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.