Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<Project>

<!-- Enable Central Package Management. Kept first, and as the ONLY place this property name appears in the
file, so a static analyzer (e.g. OpenSSF Scorecard's Pinned-Dependencies parser) reads the intended
"true" and never a value mentioned in prose below. -->
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<!--
Central Package Management (CPM). One source of truth for every NuGet version in the repository: projects
declare <PackageReference Include="..." /> WITHOUT a Version, and the version is resolved from the matching
Expand All @@ -11,13 +18,10 @@
* FirstClassErrors.Analyzers pins Microsoft.CodeAnalysis.CSharp to $(RoslynFloorVersion) via a
VersionOverride, so the load-contract floor stays property-driven and independent of the (newer)
central version the analyzer test project consumes.
* tools/floor-check/FloorCheck.csproj opts OUT of CPM (ManagePackageVersionsCentrally=false): it consumes
the FirstClassErrors package at a dynamic $(FloorCheckVersion) and is built in isolation, outside the
* tools/floor-check/FloorCheck.csproj opts OUT of CPM in its own project file: it consumes the
FirstClassErrors package at a dynamic $(FloorCheckVersion) and is built in isolation, outside the
solution.
-->
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
<PackageVersion Include="coverlet.collector" Version="10.0.1" />
Expand Down