From b54d394fded9c20b0d487e21da896c334c82a8b4 Mon Sep 17 00:00:00 2001 From: Marius Thesing Date: Sun, 8 Sep 2024 12:17:34 +0200 Subject: [PATCH 1/2] Migrate to NuGet Central Package Management --- Directory.Build.props | 6 ++--- Directory.Packages.props | 25 +++++++++++++++++ src/Renci.SshNet/Renci.SshNet.csproj | 13 +++------ .../Renci.SshNet.Benchmarks.csproj | 2 +- .../Renci.SshNet.IntegrationBenchmarks.csproj | 2 +- .../Renci.SshNet.IntegrationTests.csproj | 27 ++++++------------- .../Renci.SshNet.Tests.csproj | 16 +++++------ 7 files changed, 50 insertions(+), 41 deletions(-) create mode 100644 Directory.Packages.props diff --git a/Directory.Build.props b/Directory.Build.props index 1480717e0..be64de7d0 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -46,8 +46,8 @@ Use fixed version of analyzers. --> - - - + + + diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 000000000..afd4eacbb --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,25 @@ + + + true + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Renci.SshNet/Renci.SshNet.csproj b/src/Renci.SshNet/Renci.SshNet.csproj index bea1b66af..9ddb79769 100644 --- a/src/Renci.SshNet/Renci.SshNet.csproj +++ b/src/Renci.SshNet/Renci.SshNet.csproj @@ -35,21 +35,16 @@ - - + - - - + + - + diff --git a/test/Renci.SshNet.Benchmarks/Renci.SshNet.Benchmarks.csproj b/test/Renci.SshNet.Benchmarks/Renci.SshNet.Benchmarks.csproj index 1b49138db..d07465ef1 100644 --- a/test/Renci.SshNet.Benchmarks/Renci.SshNet.Benchmarks.csproj +++ b/test/Renci.SshNet.Benchmarks/Renci.SshNet.Benchmarks.csproj @@ -8,7 +8,7 @@ - + diff --git a/test/Renci.SshNet.IntegrationBenchmarks/Renci.SshNet.IntegrationBenchmarks.csproj b/test/Renci.SshNet.IntegrationBenchmarks/Renci.SshNet.IntegrationBenchmarks.csproj index aef8d5daa..0f149c013 100644 --- a/test/Renci.SshNet.IntegrationBenchmarks/Renci.SshNet.IntegrationBenchmarks.csproj +++ b/test/Renci.SshNet.IntegrationBenchmarks/Renci.SshNet.IntegrationBenchmarks.csproj @@ -8,7 +8,7 @@ - + diff --git a/test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj b/test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj index 0ad9f8ce8..cd1bf5314 100644 --- a/test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj +++ b/test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj @@ -13,28 +13,17 @@ - - - - - - - - - - + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + build; native; contentfiles; analyzers; buildtransitive all diff --git a/test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj b/test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj index 08b744b39..59053ce43 100644 --- a/test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj +++ b/test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj @@ -9,17 +9,17 @@ - - - - - - - + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + build; native; contentfiles; analyzers; buildtransitive all From 47cfb9d338a1ecfa4b98d2ce829258cf1b6ed929 Mon Sep 17 00:00:00 2001 From: Marius Thesing Date: Wed, 11 Sep 2024 19:58:28 +0200 Subject: [PATCH 2/2] set CentralPackageVersionOverrideEnabled to false --- Directory.Packages.props | 1 + 1 file changed, 1 insertion(+) diff --git a/Directory.Packages.props b/Directory.Packages.props index afd4eacbb..9c5950fab 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,6 +1,7 @@ true + false