Compartilhar via


ProjectInSolution Class

Represents a project (or solution folder) that is read in from a solution file.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Construction.ProjectInSolution

Namespace:  Microsoft.Build.Construction
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public NotInheritable Class ProjectInSolution
public sealed class ProjectInSolution
public ref class ProjectInSolution sealed
[<Sealed>]
type ProjectInSolution =  class end
public final class ProjectInSolution

The ProjectInSolution type exposes the following members.

Properties

  Name Description
Public property AbsolutePath Gets the absolute path for this project.
Public property Dependencies Gets a list of GUIDs, in "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" form, mapping to projects that this project has a build order dependency on, as defined in the solution file.
Public property ParentProjectGuid Gets the GUID, in "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" form, of this project's parent project, if any.
Public property ProjectConfigurations Gets the configurations for this project, keyed off the configuration's full name, e.g. "Debug|x86".
Public property ProjectGuid The unique GUID associated with this project, in "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" form
Public property ProjectName Gets the project name.
Public property ProjectType Gets the solution project type.
Public property RelativePath Gets the path to this project file, relative to the solution location.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

Introduced in Visual Studio 2015.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Build.Construction Namespace