In these cases, it is necessary to disable the hosting process to return the correct results. MSDN How to: Disable the Hosting ProcessĮxcerpt from MSDN How to: Disable the Hosting ProcessĬalls to certain APIs can be affected when the hosting process is enabled.Project Properties > Debug > Configuration (Debug) > Enable the Visual Studio hosting process.Project Properties > Debug > Configuration (Release) > Disable the Visual Studio hosting process.
Adding on, you can turn off the creation of vshost files for your Release build configuration and have it enabled for Debug.