[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

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

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?

  • 4
  • 3
2 Solutions
switch your configuration to release and it will be in the release directory.

You only need to deploy

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.
newbiewebSr. Software EngineerAuthor Commented:
What is the advantage of using the Release version the Debug version?
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.

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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)
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.

yes not including the pdb with either is quite a bit better.
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?
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?

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now