From 58974c0c5c98a4b2e4612fa4a06ff136c9ba14f7 Mon Sep 17 00:00:00 2001 From: James Thompson Date: Wed, 31 Jan 2024 08:13:18 +1100 Subject: [PATCH] Tweaked the handling of tags Signed-off-by: James Thompson --- CycloneDX/Services/NugetV3Service.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/CycloneDX/Services/NugetV3Service.cs b/CycloneDX/Services/NugetV3Service.cs index c070e10c..08f629ce 100644 --- a/CycloneDX/Services/NugetV3Service.cs +++ b/CycloneDX/Services/NugetV3Service.cs @@ -334,15 +334,16 @@ private static Component SetupComponentProperties(Component component, NuspecMod { Type = releaseNoteType, Title = version.ToString(), - Tags = version.ReleaseLabels.ToList(), - Notes = [ + Tags = nuspecModel.nuspecReader.GetTags().Split(",").ToList(), + Notes = new List() + { new Note() { Text = new AttachedText(){ Content = nuspecModel.nuspecReader.GetReleaseNotes() } } - ] + } }; var properties = nuspecModel.nuspecReader.GetMetadata() @@ -353,11 +354,6 @@ private static Component SetupComponentProperties(Component component, NuspecMod }) .ToList(); properties.Add(new Property() - { - Name = "tags", - Value = nuspecModel.nuspecReader.GetTags(), - }); - properties.Add(new Property() { Name = "language", Value = nuspecModel.nuspecReader.GetLanguage()