VsTeXProject.VisualStudio.Project.ProjectNode.SetCurrentConfiguration C# (CSharp) Method

SetCurrentConfiguration() protected method

Set the configuration in MSBuild. This does not get persisted and is used to evaluate msbuild conditions which are based on the $(Configuration) property.
protected SetCurrentConfiguration ( ) : void
return void
        protected internal virtual void SetCurrentConfiguration()
        {
            if (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 (!HasProjectOpened)
                return;

            var automationObject = GetAutomationObject() as EnvDTE.Project;

            SetConfiguration(Utilities.GetActiveConfigurationName(automationObject));
        }
ProjectNode