Simon Mourier's Avatar
Simon Mourier's blog (1353 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • visual-studio

Receiving events from VS service in VSIX extension right from IDE startup

Mar 31, 2018 See the question and my original answer on StackOverflow

A package can be set to autoload in a particular user interface context, for example, when a solution is open.

The ProvideAutoLoadAttribute attribute sets this context.

....
[ProvideAutoLoad(UIContextGuids80.SolutionExists)] // choose when you want it to be loaded
...
public class MyAutoloadedPackage : Package  
{
    ...
}  
  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms