protected internal virtual void SetCurrentConfiguration()
{
if (this.BuildInProgress)
{
// we are building so this should already be the current configuration
return;
}
// Can't ask for the active config until the project is opened, so do nothing in that scenario
if (!this.projectOpened)
return;
EnvDTE.Project automationObject = this.GetAutomationObject() as EnvDTE.Project;
var configKey = ProjectConfig.TryGetActiveConfigurationAndPlatform(ServiceProvider, this);
//Utilities.GetActiveConfigurationName(automationObject)
if (configKey != null)
this.SetConfiguration(configKey);
}