Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is usevshostingprocess in *.csproj?

Tags:

c#

asp.net

csproj

Today, all of a sudden I found this in my *.csproj file

< UseVSHostingProcess> False </UseVSHostingProcess> 

When i Compared it with latest it was added into

<PropertyGroup> </ Property Group> 

I have alot search on Google and found http://msdn.microsoft.com/en-us/library/vstudio/ms171262.aspx, which I do not quite understand.

Can someone please explain what UseVSHostingProcess is and why it is needed.

like image 708
raholsn Avatar asked Oct 15 '13 12:10

raholsn


People also ask

What does a Csproj file do?

CSPROJ files define a project's content, platform requirements, versioning information, and web server or database server settings. They also list the files that are part of the project.

What is Visual Studio hosting process?

The Visual Studio hosting process improves debugger performance and enables new debugger features, such as partial-trust debugging and design-time expression evaluation. You can disable the hosting process if you need to.

Where is .csproj file located?

csproj files (WebApi is the name of my project). It is located as expected in the root of the project.


1 Answers

I got this setting in my csproj file while using .NET Reflector Pro in Visual Studio to generate PDBs for 3rd party DLLs and debug them.

The Visual Studio hosting process improves debugger performance and enables new debugger features, such as partial-trust debugging and design-time expression evaluation. You can disable the hosting process if you need to.

Here is more information about this host process and debugging: Debugging and the Hosting Process

like image 107
Nikolay Arhangelov Avatar answered Sep 28 '22 02:09

Nikolay Arhangelov