SolutionFile Class

Definition

public ref class SolutionFile sealed
public sealed class SolutionFile
type SolutionFile = class
Public NotInheritable Class SolutionFile
Inheritance
SolutionFile

Remarks

This class contains the functionality to parse a solution file and return a corresponding MSBuild project file containing the projects and dependencies defined in the solution.

Properties

ProjectsByGuid

The collection of projects in this solution, accessible by their guids as a string in "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" form

ProjectsInOrder

All projects in this solution, in the order they appeared in the solution file

SolutionConfigurations

The list of all full solution configurations (configuration + platform) in this solution

Methods

GetDefaultConfigurationName()

Gets the default configuration name for this solution. Usually it's Debug, unless it's not present in which case it's the first configuration name we find.

GetDefaultPlatformName()

Gets the default platform name for this solution. Usually it's Mixed Platforms, unless it's not present in which case it's the first platform name we find.

Parse(String)

This method takes a path to a solution file, parses the projects and project dependencies in the solution file, and creates internal data structures representing the projects within the SLN.

Applies to