Automation for Configuration and SelectedItem Objects
You can automate the build and selected item processes in Visual Studio.
Automation for Builds
Build or configuration has an automation model that is provided when you implement IVsCfgProvider. For more information, see Build Configurations.
If you create a VSPackage and want to control configuration options, you must use the automation model.
Automation for SelectedItem
You do not have to provide an implementation for the SelectedItem object because Visual Studio contains a standard implementation. However, you can implement the SelectedItem object if you prefer. You must implement an object that contains the SelectedItem interface and return a response to a call to the GetPropertyPage method with VSITEMID set to VSHPROPID_ExtSelectedItem.