From 7a7b302db7abbd0e9abd02deb8eac0b92f3d9989 Mon Sep 17 00:00:00 2001 From: Jimmy Bogard Date: Tue, 27 Oct 2026 15:53:19 -0500 Subject: [PATCH] Move to central package management Package versions now live in Directory.Packages.props. The AutoMapper package's public dependencies are grouped separately since their versions become the nuspec minimums. Transitive pinning is left off so test-only pins (e.g. System.Security.Cryptography.Pkcs) can't leak into the package. nuget.config now clears inherited sources and uses only nuget.org. The dnceng feed was only needed for the commented-out ApiCompat reference, which is removed. A single source also avoids NU1507, which TreatWarningsAsErrors would turn into a restore failure. Co-Authored-By: Claude Opus 5.5 --- AutoMapper.slnx | 1 + Directory.Packages.props | 39 +++++++++++++++++++ nuget.config | 5 ++- .../AutoMapper.DI.Tests.csproj | 10 ++--- src/AutoMapper/AutoMapper.csproj | 15 ++++--- .../AutoMapper.IntegrationTests.csproj | 15 ++++--- src/TestApp/TestApp.csproj | 2 +- src/UnitTests/AutoMapper.UnitTests.csproj | 10 ++--- 8 files changed, 68 insertions(+), 29 deletions(-) create mode 100644 Directory.Packages.props diff --git a/AutoMapper.slnx b/AutoMapper.slnx index 7e23d948ae..c8b830af7a 100644 --- a/AutoMapper.slnx +++ b/AutoMapper.slnx @@ -15,6 +15,7 @@ + diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000000..346b7a5398 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,39 @@ + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nuget.config b/nuget.config index 9efe1306b7..94b85f6cd1 100644 --- a/nuget.config +++ b/nuget.config @@ -1,6 +1,7 @@  - + + - \ No newline at end of file + diff --git a/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj b/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj index 1ae0467efc..2084c6057c 100644 --- a/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj +++ b/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj @@ -16,11 +16,11 @@ - - - - - + + + + + diff --git a/src/AutoMapper/AutoMapper.csproj b/src/AutoMapper/AutoMapper.csproj index f05e2df5ad..688871a94e 100644 --- a/src/AutoMapper/AutoMapper.csproj +++ b/src/AutoMapper/AutoMapper.csproj @@ -44,15 +44,14 @@ - - - - - - + + + + + + - - + diff --git a/src/IntegrationTests/AutoMapper.IntegrationTests.csproj b/src/IntegrationTests/AutoMapper.IntegrationTests.csproj index 0412ac4a45..3bf96580ec 100644 --- a/src/IntegrationTests/AutoMapper.IntegrationTests.csproj +++ b/src/IntegrationTests/AutoMapper.IntegrationTests.csproj @@ -10,14 +10,13 @@ - - - - - - - - + + + + + + + diff --git a/src/TestApp/TestApp.csproj b/src/TestApp/TestApp.csproj index 8d7b9ec4b1..6a363fc56b 100644 --- a/src/TestApp/TestApp.csproj +++ b/src/TestApp/TestApp.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/UnitTests/AutoMapper.UnitTests.csproj b/src/UnitTests/AutoMapper.UnitTests.csproj index 4dc25a1377..d0a07f23ce 100644 --- a/src/UnitTests/AutoMapper.UnitTests.csproj +++ b/src/UnitTests/AutoMapper.UnitTests.csproj @@ -14,11 +14,11 @@ - - - - - + + + + +