<ItemGroup>
nodes should only contain nodes of a single type. Mixing nodes
of different types in a single <ItemGroup>
can become harder to read and
maintain.
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="FluentAssertions.Analyzers" Version="*" />
<PackageReference Include="NUnit.Analyzers" Version="*" />
<ProjectReference Include="..\..\src\DotNetProjectFile.Analyzers\DotNetProjectFile.Analyzers.csproj" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="FluentAssertions.Analyzers" Version="*" />
<PackageReference Include="NUnit.Analyzers" Version="*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\DotNetProjectFile.Analyzers\DotNetProjectFile.Analyzers.csproj" />
</ItemGroup>
</Project>
Some node types may appear together (due the way they might be used together). Currently the set of node types that may appear together is the following:
Compile
EmbeddedResource
Content
None
More sets may be added over time.