次の方法で共有


Project.Imports Property

Gets a list of all the files that contributed to the evaluation of this project.

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 Imports As IList(Of ResolvedImport)
public IList<ResolvedImport> Imports { get; }
public:
property IList<ResolvedImport>^ Imports {
    IList<ResolvedImport>^ get ();
}
member Imports : IList<ResolvedImport> with get
function get Imports () : IList<ResolvedImport>

Property Value

Type: IList<ResolvedImport>
Returns a list of all the files that contributed to the evaluation of this project.
The name of each item is the Import element that caused the file to be imported. The value of each item is the project root of the imported project. Import elements whose Condition attribute evaluated to false are not included.

Remarks

The project root of this project is not included.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.Evaluation Namespace