GetSolutionProjects Class

MSBuild

Task to get paths to projects and project names from VS2005 solution file


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class GetSolutionProjects
    Inherits Task
C#
public class GetSolutionProjects : Task
C++
ref class GetSolutionProjects : Task
J#
public class GetSolutionProjects extends Task
JScript
public class GetSolutionProjects extends Task

Example

Returns project name and relative path from test solution

 Copy Code
              <Target Name="Test">
                  <GetSolutionProjects Solution="TestSolution.sln">
                      <Output ItemName="ProjectFiles" TaskParameter="Output"/>
                  </GetSolutionProjects>
            
                <Message Text="Solution Project paths:" />
                <Message Text="%(ProjectFiles.ProjectName) : @(ProjectFiles)" />
              </Target>
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.GetSolutionProjects

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.