From d9c8c17b21c388c3cec11f998b7dd4c78fc47e40 Mon Sep 17 00:00:00 2001 From: XShine555 Date: Sun, 5 Jul 2026 03:40:05 +0200 Subject: [PATCH] refactor: central package management, shared build props, security fix - Add Directory.Packages.props (CPM): all package versions centralized, remove Version attributes from every PackageReference - Add Directory.Build.props: shared TargetFramework/Nullable/ImplicitUsings - Drop redundant per-project RootNamespace/AssemblyName (default = project name) and stale NuGet metadata (PackageId/Version/Authors/RepositoryUrl) - Bump Microsoft.OpenApi to 2.9.0 (CVE-2026-49451, was transitive 2.0.0); add explicit reference in Musify.Api which uses it directly - Add repo-scoped nuget.config pinning nuget.org for reproducible restore Build: 0 warnings, 0 errors. Co-Authored-By: Claude Opus 4.8 --- Directory.Build.props | 9 ++++ Directory.Packages.props | 51 ++++++++++++++++++ Musify.Api/Musify.Api.csproj | 50 ++++++++---------- Musify.Application/Musify.Application.csproj | 35 +++++-------- Musify.Domain/Musify.Domain.csproj | 14 +---- .../Musify.Infrastructure.csproj | 52 ++++++++----------- .../Musify.StreamingGateway.csproj | 10 ++-- Musify.Worker/Musify.Worker.csproj | 31 +++++------ nuget.config | 7 +++ 9 files changed, 142 insertions(+), 117 deletions(-) create mode 100644 Directory.Build.props create mode 100644 Directory.Packages.props create mode 100644 nuget.config diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..b818461 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,9 @@ + + + + net10.0 + enable + enable + + + diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..73422ec --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,51 @@ + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Musify.Api/Musify.Api.csproj b/Musify.Api/Musify.Api.csproj index e65548c..0c795d1 100644 --- a/Musify.Api/Musify.Api.csproj +++ b/Musify.Api/Musify.Api.csproj @@ -1,37 +1,33 @@ - net10.0 - enable - enable - Musify.Api - Musify.Api 1c3fa41c-6f07-433b-af79-1f67fad338fd - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Musify.Application/Musify.Application.csproj b/Musify.Application/Musify.Application.csproj index 5694d54..5e4de3b 100644 --- a/Musify.Application/Musify.Application.csproj +++ b/Musify.Application/Musify.Application.csproj @@ -1,31 +1,20 @@ - - - - net10.0 - enable - enable - Musify.Application - Musify.Application - 0.1.2 - NotS1mp - https://github.com/XShine555/MusifyBackend - + - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - + + + + + + + diff --git a/Musify.Domain/Musify.Domain.csproj b/Musify.Domain/Musify.Domain.csproj index 6338edf..61718a1 100644 --- a/Musify.Domain/Musify.Domain.csproj +++ b/Musify.Domain/Musify.Domain.csproj @@ -1,15 +1,3 @@ - - - - net10.0 - enable - enable - Musify.Domain - Musify.Domain - 0.1.2 - NotS1mp - https://github.com/XShine555/MusifyBackend - - + diff --git a/Musify.Infrastructure/Musify.Infrastructure.csproj b/Musify.Infrastructure/Musify.Infrastructure.csproj index 0190a8b..5a937af 100644 --- a/Musify.Infrastructure/Musify.Infrastructure.csproj +++ b/Musify.Infrastructure/Musify.Infrastructure.csproj @@ -1,41 +1,33 @@ - + - net10.0 - enable - enable - Musify.Infrastructure - 07d419fc-9ade-471a-bc0e-aebece785b30 - Musify.Infrastructure - 0.1.1 - NotS1mp - https://github.com/XShine555/MusifyBackend + 07d419fc-9ade-471a-bc0e-aebece785b30 - - - - - - + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/Musify.StreamingGateway/Musify.StreamingGateway.csproj b/Musify.StreamingGateway/Musify.StreamingGateway.csproj index 7b7346b..009b929 100644 --- a/Musify.StreamingGateway/Musify.StreamingGateway.csproj +++ b/Musify.StreamingGateway/Musify.StreamingGateway.csproj @@ -1,17 +1,13 @@ - net10.0 - enable - enable - Musify.StreamingGateway media-gateway-2f1c9b6a-7d3e-4c0a-9a21-0b8e5d4c3f10 - - - + + + diff --git a/Musify.Worker/Musify.Worker.csproj b/Musify.Worker/Musify.Worker.csproj index e2b175d..73fc053 100644 --- a/Musify.Worker/Musify.Worker.csproj +++ b/Musify.Worker/Musify.Worker.csproj @@ -1,26 +1,22 @@ - + - net10.0 - enable - enable dotnet-PictureWorker-1dfff89f-0602-41b7-8eaf-4da2c3358789 - Musify.Worker - - - - - - - - - - - - + + + + + + + + + + + + @@ -28,4 +24,5 @@ + diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..765346e --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + +