Como: Desativar o processo de hospedagem
Calls to certain APIs can be affected by enabling the hosting process. In these cases, it is necessary to disable the hosting process to return the correct results.
To disable the hosting process
Abrir um projeto em Visual Studio.
On the Project menu, click Properties.
Click the Debug tab.
Clear the Enable the Visual Studio hosting process check box.
When the hosting process is disabled, several debugging features are unavailable or experience decreased performance. For more information, see Depuração e o processo de hospedagem.
In general, when the hosting process is disabled:
O tempo necessário para iniciar a depuração .NET Framework aumentos de aplicativos.
Design-time expression evaluation is unavailable.
Partial trust debugging is unavailable.