How can I get DTE instance in a VS package project? It\'s straigtforward in addin project since application is being passed as an argument to onConnection
application
onConnection
You can get a null instance getting the SDTE service if the shell is not fully initialized. See how to handle that in this code sample:
HOWTO: Get the EnvDTE.DTE instance from a package