Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vshost.exe file in Release folder?

Tags:

c#

vshost.exe

Why there is a appname.vshost.exe file generated for the release version of my application? I might add that I'm using an external dll library and some unsafe code.

What's even more interesting, my application launched from Release folder does not work correctly (it works OK when launched from Debug folder).

It's bit hard to explain - feel free to ask if you need more info.

like image 998
baal80 Avatar asked Jun 15 '10 17:06

baal80


2 Answers

For anyone else having the issue, it is probably because "Enable the Visual Studio hosting process" checkbox (in Project Properties -> "Debug" Tab) is checked under your Release configuration.

You probably want it only checked under your Debug configuration so

  1. just delete all files from your Release folder OR run Clean on the project;
  2. then uncheck the checkbox
  3. and build the project.
like image 131
user111 Avatar answered Nov 05 '22 21:11

user111


From David's answer, perhaps the link at the bottom - How to: Disable the Hosting Process might be what you're after if you actually want to get rid of it from your project's output.

Though it shouldn't do any harm to leave it on your machine; so just don't deploy it...

like image 27
Reddog Avatar answered Nov 05 '22 21:11

Reddog