Partager via


Project.GetLogicalProject Method

Gets an enumerator over all the elements in the "logical project". The logical project is defined as the unevaluated project obtained from the single MSBuild file that is the result of inlining the text of all imports of the original MSBuild project manifest file.

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 GetLogicalProject As IEnumerable(Of ProjectElement)
public IEnumerable<ProjectElement> GetLogicalProject()
public:
IEnumerable<ProjectElement^>^ GetLogicalProject()
member GetLogicalProject : unit -> IEnumerable<ProjectElement> 
public function GetLogicalProject() : IEnumerable<ProjectElement>

Return Value

Type: IEnumerable<ProjectElement>
Returns an enumerator over all the elements in the "logical project".

Remarks

The logical project is defined as the unevaluated project obtained from the single MSBuild file that is the result of including inline the text of all imports of the original MSBuild project manifest file.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.Evaluation Namespace