共用方式為


ProjectCollection.GetLoadedProjects Method

Gets all projects whose project path matches the given path.

MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

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

Syntax

'Declaration
Public Function GetLoadedProjects ( _
    fullPath As String _
) As ICollection(Of Project)
public ICollection<Project> GetLoadedProjects(
    string fullPath
)
public:
ICollection<Project^>^ GetLoadedProjects(
    String^ fullPath
)
member GetLoadedProjects : 
        fullPath:string -> ICollection<Project> 
public function GetLoadedProjects(
    fullPath : String
) : ICollection<Project>

Parameters

  • fullPath
    Type: System.String

    The path to a project file to be matched.

Return Value

Type: ICollection<Project>
Returns all projects whose project path matches the given path.

Remarks

There may be more than one project with the given path because projects are also distinguished by global properties and/or tools version.

.NET Framework Security

See Also

Reference

ProjectCollection Class

Microsoft.Build.Evaluation Namespace