From 8a3c1cd758cbc13d49d029274383ce9a4969d8d6 Mon Sep 17 00:00:00 2001 From: Pavle Ciric Date: Mon, 18 Nov 2024 11:02:52 +0100 Subject: [PATCH 1/5] Implement central package versioning Implementing central package versioning cleans up project files of overwritten versions of transitive dependecies. --- Directory.Packages.props | 29 +++++++++++++++++++ properties/service_fabric_common.props | 4 --- .../service_fabric_managed_stylecop.props | 2 +- ...viceFabric.AspNetCore.Configuration.csproj | 4 +-- ...ft.ServiceFabric.AspNetCore.HttpSys.csproj | 4 +-- ...ft.ServiceFabric.AspNetCore.Kestrel.csproj | 13 ++------- .../Microsoft.ServiceFabric.AspNetCore.csproj | 11 ++----- 7 files changed, 38 insertions(+), 29 deletions(-) create mode 100644 Directory.Packages.props diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..e886b41 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,29 @@ + + + true + true + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/properties/service_fabric_common.props b/properties/service_fabric_common.props index f28600f..34ce6a9 100644 --- a/properties/service_fabric_common.props +++ b/properties/service_fabric_common.props @@ -19,10 +19,6 @@ $(RepoRoot)\nuget\nuget.exe - - 11.0.1004 - 8.0.1004 - 8 diff --git a/properties/service_fabric_managed_stylecop.props b/properties/service_fabric_managed_stylecop.props index 9b4b5f6..db659fe 100644 --- a/properties/service_fabric_managed_stylecop.props +++ b/properties/service_fabric_managed_stylecop.props @@ -5,7 +5,7 @@ $(MSBuildThisFileDirectory)stylecop\StylecopSuppressions.cs - + diff --git a/src/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.csproj b/src/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.csproj index 3cce717..6620375 100644 --- a/src/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.csproj +++ b/src/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.csproj @@ -9,13 +9,13 @@ net462;net8.0 - + - + diff --git a/src/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.csproj b/src/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.csproj index f74384e..e2f751a 100644 --- a/src/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.csproj +++ b/src/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.csproj @@ -9,13 +9,13 @@ net462;net8.0 - + - + diff --git a/src/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.csproj b/src/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.csproj index 49ee580..33051c6 100644 --- a/src/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.csproj +++ b/src/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.csproj @@ -9,22 +9,13 @@ net462;net8.0 - + - - - - - - - + diff --git a/src/Microsoft.ServiceFabric.AspNetCore/Microsoft.ServiceFabric.AspNetCore.csproj b/src/Microsoft.ServiceFabric.AspNetCore/Microsoft.ServiceFabric.AspNetCore.csproj index 0ddcec5..c199dab 100644 --- a/src/Microsoft.ServiceFabric.AspNetCore/Microsoft.ServiceFabric.AspNetCore.csproj +++ b/src/Microsoft.ServiceFabric.AspNetCore/Microsoft.ServiceFabric.AspNetCore.csproj @@ -9,20 +9,13 @@ net462;net8.0 - + - - - - - + From 64295b0eb97f85ee4df86fbb67011c72fd057fb8 Mon Sep 17 00:00:00 2001 From: Pavle Ciric Date: Mon, 18 Nov 2024 12:08:59 +0100 Subject: [PATCH 2/5] Migrate test projects to central package versioning --- Directory.Packages.props | 5 +++++ .../Microsoft.ServiceFabric.AspNetCore.Tests.csproj | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index e886b41..be6552f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -13,6 +13,7 @@ dependencies should be revised to see if overwriting their version is still necessary.--> + @@ -20,10 +21,14 @@ + + + + \ No newline at end of file diff --git a/test/unittests/Microsoft.ServiceFabric.AspNetCore.Tests/Microsoft.ServiceFabric.AspNetCore.Tests.csproj b/test/unittests/Microsoft.ServiceFabric.AspNetCore.Tests/Microsoft.ServiceFabric.AspNetCore.Tests.csproj index 29bb1cc..72ba09d 100644 --- a/test/unittests/Microsoft.ServiceFabric.AspNetCore.Tests/Microsoft.ServiceFabric.AspNetCore.Tests.csproj +++ b/test/unittests/Microsoft.ServiceFabric.AspNetCore.Tests/Microsoft.ServiceFabric.AspNetCore.Tests.csproj @@ -10,12 +10,12 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers From c7e2d4c6b6c8b2aead6f939bd5e43bc0a5f91baf Mon Sep 17 00:00:00 2001 From: Pavle Ciric Date: Mon, 18 Nov 2024 12:10:22 +0100 Subject: [PATCH 3/5] Disable unused NuGet projects NuGet projects which package SDK binaries are no longer in use and have been disabled. SF.AspNetCore.Internal is the only one left in use and it has been left enabled. --- properties/service_fabric_nuget.targets | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/properties/service_fabric_nuget.targets b/properties/service_fabric_nuget.targets index 8632524..43fd673 100644 --- a/properties/service_fabric_nuget.targets +++ b/properties/service_fabric_nuget.targets @@ -2,11 +2,7 @@ - + @@ -18,13 +14,8 @@ - - - - - From 28b08313e07822ea3dcfe621f5640110f8395d7f Mon Sep 17 00:00:00 2001 From: Pavle Ciric Date: Mon, 18 Nov 2024 18:02:49 +0100 Subject: [PATCH 4/5] Disable unused NuGet projects Projects for generating NuGet packages are no longer in use and have been removed. --- ...rviceFabric.AspNetCore.Abstractions.nuproj | 80 ------------------ ...viceFabric.AspNetCore.Configuration.nuproj | 81 ------------------- ...ft.ServiceFabric.AspNetCore.HttpSys.nuproj | 81 ------------------- ...ft.ServiceFabric.AspNetCore.Kestrel.nuproj | 81 ------------------- 4 files changed, 323 deletions(-) delete mode 100644 nuprojs/Microsoft.ServiceFabric.AspNetCore.Abstractions/Microsoft.ServiceFabric.AspNetCore.Abstractions.nuproj delete mode 100644 nuprojs/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.nuproj delete mode 100644 nuprojs/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.nuproj delete mode 100644 nuprojs/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.nuproj diff --git a/nuprojs/Microsoft.ServiceFabric.AspNetCore.Abstractions/Microsoft.ServiceFabric.AspNetCore.Abstractions.nuproj b/nuprojs/Microsoft.ServiceFabric.AspNetCore.Abstractions/Microsoft.ServiceFabric.AspNetCore.Abstractions.nuproj deleted file mode 100644 index 0e1c451..0000000 --- a/nuprojs/Microsoft.ServiceFabric.AspNetCore.Abstractions/Microsoft.ServiceFabric.AspNetCore.Abstractions.nuproj +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - Microsoft.ServiceFabric.AspNetCore.Abstractions - Microsoft.ServiceFabric.AspNetCore.Abstractions - This package provides abstractions for creating AspNetCore Service Fabric microservices. - This package provides abstractions for creating AspNetCore Service Fabric microservices. - ServiceFabric Microsoft Azure Fabric - v4.8.1 - - - - - - - - lib\net462 - - - lib\net462 - - - lib\net47 - - - lib\net47 - - - lib\net471 - - - lib\net471 - - - lib\net472 - - - lib\net472 - - - lib\net8.0 - - - lib\net8.0 - - - runtimes\win\lib\net462 - - - runtimes\win\lib\net47 - - - runtimes\win\lib\net471 - - - runtimes\win\lib\net472 - - - - - - [$(NugetPkg_Version_Microsoft_ServiceFabric_Services)] - net8.0 - - - net8.0 - - - - [$(NugetPkg_Version_Microsoft_ServiceFabric_Services)] - net462 - - - 2.2.7 - net462 - - - diff --git a/nuprojs/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.nuproj b/nuprojs/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.nuproj deleted file mode 100644 index 0522bef..0000000 --- a/nuprojs/Microsoft.ServiceFabric.AspNetCore.Configuration/Microsoft.ServiceFabric.AspNetCore.Configuration.nuproj +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - Microsoft.ServiceFabric.AspNetCore.Configuration - Microsoft.ServiceFabric.AspNetCore.Configuration - This package provides Configuration for creating AspNetCore Service Fabric microservices. - This package provides Configuration for creating AspNetCore Service Fabric microservices. - ServiceFabric Microsoft Azure Fabric - v4.8.1 - - - - - - - - lib\net462 - - - lib\net462 - - - lib\net47 - - - lib\net47 - - - lib\net471 - - - lib\net471 - - - lib\net472 - - - lib\net472 - - - lib\net8.0 - - - lib\net8.0 - - - runtimes\win\lib\net462 - - - runtimes\win\lib\net47 - - - runtimes\win\lib\net471 - - - runtimes\win\lib\net472 - - - - - - - [$(NugetPkg_Version_Microsoft_ServiceFabric_Services)] - net8.0 - - - net8.0 - - - - [$(NugetPkg_Version_Microsoft_ServiceFabric_Services)] - net462 - - - 2.1.0 - net462 - - - diff --git a/nuprojs/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.nuproj b/nuprojs/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.nuproj deleted file mode 100644 index 89e61e3..0000000 --- a/nuprojs/Microsoft.ServiceFabric.AspNetCore.HttpSys/Microsoft.ServiceFabric.AspNetCore.HttpSys.nuproj +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - Microsoft.ServiceFabric.AspNetCore.HttpSys - Microsoft.ServiceFabric.AspNetCore.HttpSys - This package provides AspNetCore HttpSys server based communication listener for Service Fabric microservices. - This package provides AspNetCore HttpSys server based communication listener for Service Fabric microservices. - ServiceFabric Microsoft Azure Fabric - v4.8.1 - - - - - - - - lib\net462 - - - lib\net462 - - - lib\net47 - - - lib\net47 - - - lib\net471 - - - lib\net471 - - - lib\net472 - - - lib\net472 - - - lib\net8.0 - - - lib\net8.0 - - - runtimes\win\lib\net462 - - - runtimes\win\lib\net47 - - - runtimes\win\lib\net471 - - - runtimes\win\lib\net472 - - - - - - - [$(NuGetPackageVersion)] - net8.0 - - - net8.0 - - - - [$(NuGetPackageVersion)] - net462 - - - 2.1.12 - net462 - - - diff --git a/nuprojs/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.nuproj b/nuprojs/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.nuproj deleted file mode 100644 index 3c01914..0000000 --- a/nuprojs/Microsoft.ServiceFabric.AspNetCore.Kestrel/Microsoft.ServiceFabric.AspNetCore.Kestrel.nuproj +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - Microsoft.ServiceFabric.AspNetCore.Kestrel - Microsoft.ServiceFabric.AspNetCore.Kestrel - This package provides AspNetCore Kestrel based communication listener for Service Fabric microservices. - This package provides AspNetCore Kestrel based communication listener for Service Fabric microservices. - ServiceFabric Microsoft Azure Fabric - v4.8.1 - - - - - - - - lib\net462 - - - lib\net462 - - - lib\net47 - - - lib\net47 - - - lib\net471 - - - lib\net471 - - - lib\net472 - - - lib\net472 - - - lib\net8.0 - - - lib\net8.0 - - - runtimes\win\lib\net462 - - - runtimes\win\lib\net47 - - - runtimes\win\lib\net471 - - - runtimes\win\lib\net472 - - - - - - - [$(NuGetPackageVersion)] - net8.0 - - - net8.0 - - - - [$(NuGetPackageVersion)] - net462 - - - 2.1.0 - net462 - - - From d6d82c1b5de8b5cad00317fb8f52abd9ee575761 Mon Sep 17 00:00:00 2001 From: Pavle Ciric Date: Mon, 18 Nov 2024 18:14:22 +0100 Subject: [PATCH 5/5] Remove TODO tags from Directory.Packages.props --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index be6552f..4affe58 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,12 +4,12 @@ true - + -