ProjectCollection.GetLoadedProjects(String) 方法

定义

获取其项目路径与给定路径相匹配的所有项目。Gets all projects whose project path matches the given path.

public:
 System::Collections::Generic::ICollection<Microsoft::Build::Evaluation::Project ^> ^ GetLoadedProjects(System::String ^ fullPath);
public System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.Project> GetLoadedProjects (string fullPath);
member this.GetLoadedProjects : string -> System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.Project>
Public Function GetLoadedProjects (fullPath As String) As ICollection(Of Project)

参数

fullPath
String

要匹配的项目文件的路径。The path to a project file to be matched.

返回

其项目路径与给定路径相匹配的所有项目。All projects whose project path matches the given path.

注解

可能有多个具有给定路径的项目,因为项目也由全局属性和/或工具版本来区分。There may be more than one project with the given path because projects are also distinguished by global properties and/or tools version.

适用于