Directory.Packages.props
View on GitHub ยท Raw
<!-- awesome-humans/dotnet template | targets: net11.0 | last-reviewed: 2026-11-14 | sources: dotnet-blog, meziantou, ms-learn -->
<!-- Central Package Management: every PackageReference in the repository takes its version from here.
It pins each package an opinion tells you to add, so a reference copied from an opinion restores. -->
<!-- Versions verified against nuget.org (latest stable) on 2026-11-14. Refresh them with the refresh-dotnet-versions skill. -->
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup Label="Framework extensions">
<PackageVersion Include="Asp.Versioning.Http" Version="10.2.3" />
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="10.2.1" />
<PackageVersion Include="Asp.Versioning.OpenApi" Version="10.2.3" />
<!-- Key Vault configuration, and the Data Protection key ring in Blob Storage, protected by
a Key Vault key (opinions/security.md, opinions/aspnet-core-security.md). -->
<PackageVersion Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.5.2" />
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Blobs" Version="1.5.5" />
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Keys" Version="1.6.5" />
<PackageVersion Include="Azure.Identity" Version="1.21.0" />
<!-- Held at 10.0.15, not latest stable, until Asp.Versioning.OpenApi ships for .NET 11.
10.2.3 needs Microsoft.OpenApi below 3.0.0, and 11.0.0 of this package needs 3.11.0
or later, so restore fails with NU1107. See opinions/aspnet-core.md. Review by 2027-02-28. -->
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="10.0.15" />
<!-- Writes the OpenAPI document during the build. It works only beside
Microsoft.AspNetCore.OpenApi 11.0.0, so a project that uses it also sets
VersionOverride="11.0.0" on that reference while the pin above is held. 10.0.15 of this
package has no net11.0 tool. See opinions/aspnet-core.md. Review by 2027-02-28. -->
<PackageVersion Include="Microsoft.Extensions.ApiDescription.Server" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.Caching.Hybrid" Version="11.0.0" />
<!-- Redaction of classified data in logs: the redactors, and below, the logging side that
EnableRedaction comes from (opinions/logging.md). -->
<PackageVersion Include="Microsoft.Extensions.Compliance.Redaction" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.Telemetry" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.Validation" Version="11.0.0" />
<!-- Runtime packages for a Kiota client generated at build time (opinions/aspnet-core.md). -->
<PackageVersion Include="Microsoft.Kiota.Bundle" Version="2.1.6" />
<!-- Security headers (opinions/aspnet-core-security.md). -->
<PackageVersion Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.3.1" />
<!-- OTLP export for logs and traces (opinions/logging.md). -->
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.21.0" />
</ItemGroup>
<ItemGroup Label="Analyzers">
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.340" />
<PackageVersion Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="5.6.0" />
</ItemGroup>
<!-- No Microsoft.Testing.Platform entry: xunit.v3 brings its own compatible version, and
a pin here overrides it through transitive pinning. A pin below the version xunit.v3
needs fails restore with NU1109. A pin a major version above it restores and builds,
and then every test run throws a TypeLoadException (opinions/testing.md). -->
<ItemGroup Label="Testing">
<PackageVersion Include="bunit" Version="2.15.2" />
<PackageVersion Include="Meziantou.Framework.SnapshotTesting" Version="3.1.21" />
<!-- WebApplicationFactory<T> for integration tests, and FakeTimeProvider for
deterministic time. opinions/testing.md requires both. Without a pin here, a consumer
who follows the opinion gets NU1010 on restore, because CPM leaves the
PackageReference with no version. -->
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="11.0.0" />
<!-- Line coverage under Microsoft.Testing.Platform: adds the coverage option to the test
executable (opinions/testing.md). -->
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.12.0" />
<PackageVersion Include="xunit.v3" Version="4.0.3" />
<!-- A Native AOT test lane references xunit.v3.aot.mtp-v2 in place of xunit.v3
(opinions/testing.md). Keep the two on the same version. -->
<PackageVersion Include="xunit.v3.aot.mtp-v2" Version="4.0.3" />
</ItemGroup>
</Project>