We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

SolutionConfiguration Interface

Represents information about a particular way to build the solution.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

public interface SolutionConfiguration

The SolutionConfiguration type exposes the following members.

Public propertyCollectionGets the SolutionConfigurations collection containing the SolutionConfiguration object supporting this property.
Public propertyDTEGets the top-level extensibility object.
Public propertyNameGets or sets the name of the object.
Public propertySolutionContextsGets a collection of SolutionContext objects.

Public methodActivateMoves the focus to the current item.
Public methodDeleteRemoves the SolutionConfiguration object from the collection.

SolutionConfiguration also represents for each project which project configuration and platform provide context for the build operation and design-time features in the environment, such as statement completion in the editor.

Sub SolutionConfigurationExample()
  ' Ensure all Debug project configurations are what are built for the
  ' Debug solution configuration.
  Dim config As SolutionConfiguration = DTE.Solution.SolutionBuild.SolutionConfigurations.Item("Debug")
  For each context in config.SolutionContexts
    Context.ConfigurationName = "Debug"
End Sub