GetService acquires a proxy through IServiceProvider, and causes serialization issues across app domain. For example, attempting to write to active VS Window through the DTE object creates exception.
The GetCOMService extension method returns RCW to marshal calls to the DTE COM object, and is the recommended method by Microsoft.
GetService acquires a proxy through IServiceProvider, and causes serialization issues across app domain. For example, attempting to write to active VS Window through the DTE object creates exception.
The GetCOMService extension method returns RCW to marshal calls to the DTE COM object, and is the recommended method by Microsoft.