共用方式為


Project.ImportsIncludingDuplicates Property

Gets a list of duplicate imports if an import was imported multiple times. However, only the first import was used in evaluation.

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

Property Value

Type: IList<ResolvedImport>
Returns a list of duplicate imports.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.Evaluation Namespace