Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 803 Bytes

File metadata and controls

35 lines (28 loc) · 803 Bytes
parent ancestor
General
MSBuild

Proj0024: Order package versions alphabetically

<PackageVersion> nodes should be ordered alphabetically within a single <ItemGroup> in order to make it more human readable. When ordering the versions based on other criteria, consider grouping them in seperate <ItemGroup>s.

Non-compliant

<Project Sdk="Microsoft.NET.Sdk">

  <ItemGroup>
    <PackageVersion Include="StyleCop.Analyzers" Version="*" />
    <PackageVersion Include="Qowaiv.Analyzers.CSharp" Version="*" />
  </ItemGroup>
  
</Project>

Compliant

<Project Sdk="Microsoft.NET.Sdk">

  <ItemGroup>
    <PackageVersion Include="Qowaiv.Analyzers.CSharp" Version="*" />
    <PackageVersion Include="StyleCop.Analyzers" Version="*" />
  </ItemGroup>
  
</Project>