no-duplicate-include
What it does
Section titled “What it does”Reports an element of a project file (PackageReference, ProjectReference, Compile, …) that has the same Include as an earlier element of the same name in the same parent, on the later one.
Why it matters
Section titled “Why it matters”The repeat is a restore warning or a build error, and where it is not it is dead text that hides which of the two a later edit should change.
To fix, delete the repeat.
Example
Section titled “Example”... <ItemGroup> <PackageReference Include="A" Version="1" /> <PackageReference Include="B" Version="1" /> <PackageReference Include="A" Version="2"></PackageReference> <Compile Include="A" /> <ProjectReference Include="B" /> </ItemGroup>...Configuration
Section titled “Configuration”xml: lint: rules: no-duplicate-include: warn # off, warn (default), errorSuppress one line with sudsy-disable-next-line no-duplicate-include in a comment of the file’s language.