共用方式為


ProjectCollection.LoadedProjects Property

Gets all the projects currently loaded into this collection.

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 ReadOnly Property LoadedProjects As ICollection(Of Project)
public ICollection<Project> LoadedProjects { get; }
public:
property ICollection<Project^>^ LoadedProjects {
    ICollection<Project^>^ get ();
}
member LoadedProjects : ICollection<Project> with get
function get LoadedProjects () : ICollection<Project>

Property Value

Type: ICollection<Project>
Returns all the projects currently loaded into this collection.

Remarks

Each project has a unique combination of path, global properties, and tools version.

.NET Framework Security

See Also

Reference

ProjectCollection Class

Microsoft.Build.Evaluation Namespace