From 67bc43a163882af7020a52ed3bb1abdc9dd7263c Mon Sep 17 00:00:00 2001 From: Thomas Sondergaard Date: Fri, 13 Feb 2026 12:02:53 +0100 Subject: [PATCH] Use MIT SPDX license identifier in Nuget metadata licenseUrl is deprecated in the nuget spec. Using an SPDX identifier for the license is the recommended approach. https://learn.microsoft.com/en-us/nuget/reference/nuspec#licenseurl https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-a-license-expression-or-a-license-file This is of practical importance for downstream projects that use automatic tools to inspect and document licenses. This is the "licenses" element that dotnet-CycloneDX currently generates for NReco.Logging: "licenses": [ { "license": { "name": "Unknown - See URL", "url": "https://raw.githubusercontent.com/nreco/logging/master/LICENSE" } } ] With this commit it becomes simply: "licenses": [ { "license": { "id": "MIT" } } ] --- src/NReco.Logging.File/NReco.Logging.File.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NReco.Logging.File/NReco.Logging.File.csproj b/src/NReco.Logging.File/NReco.Logging.File.csproj index 8b5ce27..052295a 100644 --- a/src/NReco.Logging.File/NReco.Logging.File.csproj +++ b/src/NReco.Logging.File/NReco.Logging.File.csproj @@ -26,7 +26,7 @@ More details and examples: https://github.com/nreco/logging log;file;logging;asp.net;file-logger;logging-provider;netstandard;netcore https://www.nrecosite.com/img/nreco-logo-200.png https://github.com/nreco/logging - https://raw.githubusercontent.com/nreco/logging/master/LICENSE + MIT How to use: https://github.com/nreco/logging Version 1.3.1 changes: