What files in the debug directory do I need to execute the program?

I am about to deploy my executable to a different directory, other than the bin\Debug directory, from my Visual Studio 2005 directory. but there are other files there and want to be sure to get all those that I need.

My program is called PPUtil, so obviously I need PPUtil.exe.

What about
PPUtil.vhost.exe.config?
PPUtil.exe.config?
PPUtil.vhost.exe?
PPUtil.pdb?

Or, better yet, how do I create a Release version?  What advantages are there of making a release version?  If I intent to obfuscate the executable, does it matter which I use?

thanks,
newbieweb
newbiewebSr. Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gregoryyoungCommented:
switch your configuration to release and it will be in the release directory.

You only need to deploy
PBUtil.exe
PBUtil.exe.config

From the files you have listed.

the .vhost.exe is what visual studio uses to as a bootstrapper for debugging and the .vhost.exe.config is the config file for running in that mode.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiewebSr. Software EngineerAuthor Commented:
What is the advantage of using the Release version the Debug version?
0
Fernando SotoRetiredCommented:
Hi newbieweb;

First you want to run your programs in release mode when deploying them. The main reason for this is that they will execute faster. Also the exe file will be smaller in size. To configure the application for release mode:

1 From the main menu select Build -> Configuration Manage ...
   If you do not have the Configuration Manager on the menu Follow these steps:
   A. From the main menu select tool -> Options
   B. In the options Dialog box In the tree view select Projects and Solutions
   C. On the right panel click on Show advance build configuration so that a check mark is in the
       checkbox and then click OK
   D. Go back up to step 1.
2. In the Active Solution Configuration combo box select Release. Then Click Close button.
3. Rebuild application.
4. From the release subdirectory copy the files PPUtil.exe and PPUtil.exe.config to the new location.

That is it.

Fernando
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

gregoryyoungCommented:
newbieweb: a debug build disables JIT optimizations to make it easier to match up what your code is to your debugging symbols (contained in the .pdb file). As such the code is slower and a bit larger (not substantially)
0
newbiewebSr. Software EngineerAuthor Commented:
I noticed the pdb file is about two times the size if the exe.  So I will bet a performance improvement may be noticable.

thanks.
0
gregoryyoungCommented:
yes not including the pdb with either is quite a bit better.
0
newbiewebSr. Software EngineerAuthor Commented:
when you say "either", do you mean that you can run the executable compiled in Debug mode without the pdb file?  Is that about the same as running the Release executable?
0
newbiewebSr. Software EngineerAuthor Commented:
What about if I obfuscate the execcutable with Dotfuscator?  Does the PPUtil.exe.config file have any value at that point?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.