Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

SolutionConfiguration Interface

Represents information about a particular way to build the solution.

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

[GuidAttribute("60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")]
public interface SolutionConfiguration

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"
  Next
End Sub

Community Additions

ADD
Show:
© 2015 Microsoft