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 <noreply@anthropic.com>
This commit is contained in:
2026-07-05 03:40:05 +02:00
co-authored by Claude Opus 4.8
parent f6d668d201
commit d9c8c17b21
9 changed files with 142 additions and 117 deletions
+1 -13
View File
@@ -1,15 +1,3 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Musify.Domain</RootNamespace>
<PackageId>Musify.Domain</PackageId>
<Version>0.1.2</Version>
<Authors>NotS1mp</Authors>
<RepositoryUrl>https://github.com/XShine555/MusifyBackend</RepositoryUrl>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
</Project>