From 638b88d4284f94ef5915296e23cff746b8842002 Mon Sep 17 00:00:00 2001 From: Atreyu Date: Tue, 12 Dec 2023 09:03:10 +0100 Subject: [PATCH 01/12] Upgraded xunit libs --- CS.Changelog.Tests/CS.Changelog.Tests.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CS.Changelog.Tests/CS.Changelog.Tests.csproj b/CS.Changelog.Tests/CS.Changelog.Tests.csproj index 60d1984..399bf80 100644 --- a/CS.Changelog.Tests/CS.Changelog.Tests.csproj +++ b/CS.Changelog.Tests/CS.Changelog.Tests.csproj @@ -23,8 +23,8 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive From 855a7bb06182f0c094249910060770bafeb538fe Mon Sep 17 00:00:00 2001 From: Atreyu Date: Tue, 12 Dec 2023 09:03:33 +0100 Subject: [PATCH 02/12] Upgrade Console to .net 8.0 --- CS.Changelog.Console/CS.Changelog.Console.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CS.Changelog.Console/CS.Changelog.Console.csproj b/CS.Changelog.Console/CS.Changelog.Console.csproj index b9692d1..c0931d4 100644 --- a/CS.Changelog.Console/CS.Changelog.Console.csproj +++ b/CS.Changelog.Console/CS.Changelog.Console.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 flow-analysis true true From acf1418728e58284c9e53aa3cb2fd20a15a8582d Mon Sep 17 00:00:00 2001 From: Atreyu Date: Tue, 12 Dec 2023 09:04:24 +0100 Subject: [PATCH 03/12] Enforced code style in console --- CS.Changelog.Console/CS.Changelog.Console.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/CS.Changelog.Console/CS.Changelog.Console.csproj b/CS.Changelog.Console/CS.Changelog.Console.csproj index c0931d4..882f4bf 100644 --- a/CS.Changelog.Console/CS.Changelog.Console.csproj +++ b/CS.Changelog.Console/CS.Changelog.Console.csproj @@ -54,6 +54,7 @@ AllEnabledByDefault embedded ReadMe.md + True From a6f17402b8063590c8396aed794b0c7fe49791ee Mon Sep 17 00:00:00 2001 From: Atreyu Date: Tue, 12 Dec 2023 09:04:53 +0100 Subject: [PATCH 04/12] Followed coding conventions on .Any() --- CS.Changelog/Parsing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CS.Changelog/Parsing.cs b/CS.Changelog/Parsing.cs index 2615923..7018d1c 100644 --- a/CS.Changelog/Parsing.cs +++ b/CS.Changelog/Parsing.cs @@ -300,7 +300,7 @@ public static string CleanMessage(string message, Regex IssueFormat) // Because the end of the message will be changed if there's any issue number present in the if (message.EndsWith('\r')) message = message.Remove(message.Length - 1, 1); - if (matches.Any()) + if (matches.Count > 0) { // If multiple matches are found, then leave the message as is if (matches.Count > 1) return result; From 832c564894777277e9b95dfab2bd39ee4c90950f Mon Sep 17 00:00:00 2001 From: Atreyu Date: Tue, 12 Dec 2023 09:05:09 +0100 Subject: [PATCH 05/12] Indicated console should pack as tool --- CS.Changelog.Console/CS.Changelog.Console.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CS.Changelog.Console/CS.Changelog.Console.csproj b/CS.Changelog.Console/CS.Changelog.Console.csproj index 882f4bf..23f0d47 100644 --- a/CS.Changelog.Console/CS.Changelog.Console.csproj +++ b/CS.Changelog.Console/CS.Changelog.Console.csproj @@ -44,7 +44,7 @@ false - false + True changelog git changelog generator en From c84cce9d0c678eb71b18dafce508123be2667899 Mon Sep 17 00:00:00 2001 From: Atreyu Date: Tue, 12 Dec 2023 09:06:07 +0100 Subject: [PATCH 06/12] Upgraded test libraries --- CS.Changelog.Tests/CS.Changelog.Tests.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CS.Changelog.Tests/CS.Changelog.Tests.csproj b/CS.Changelog.Tests/CS.Changelog.Tests.csproj index 399bf80..4c4f5a0 100644 --- a/CS.Changelog.Tests/CS.Changelog.Tests.csproj +++ b/CS.Changelog.Tests/CS.Changelog.Tests.csproj @@ -18,11 +18,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all From 72b97243426efc15791e452f97b415ebae538498 Mon Sep 17 00:00:00 2001 From: Atreyu Date: Tue, 12 Dec 2023 09:09:49 +0100 Subject: [PATCH 07/12] Bumped version number --- CS.Changelog.Console/CS.Changelog.Console.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CS.Changelog.Console/CS.Changelog.Console.csproj b/CS.Changelog.Console/CS.Changelog.Console.csproj index 23f0d47..dabafab 100644 --- a/CS.Changelog.Console/CS.Changelog.Console.csproj +++ b/CS.Changelog.Console/CS.Changelog.Console.csproj @@ -7,7 +7,6 @@ true true - 8 Robert Sirre, Mario Puglisi Cohelion @@ -17,7 +16,7 @@ A git-commit based changelog generator. - 1.4.0 + 1.5.0 Cohelion 2023 MS-PL https://github.com/Cohelion/CS.Changelog @@ -25,6 +24,7 @@ Git Date: Fri, 13 Dec 2024 13:16:44 +0100 Subject: [PATCH 08/12] Upgraded to .Net 9 Made commit details url optional --- CS.Changelog.Console/CS.Changelog.Console.csproj | 7 ++++--- CS.Changelog.Console/Options.cs | 8 ++++---- CS.Changelog.Console/Program.cs | 4 ++-- CS.Changelog.Tests/CS.Changelog.Tests.csproj | 6 +++--- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/CS.Changelog.Console/CS.Changelog.Console.csproj b/CS.Changelog.Console/CS.Changelog.Console.csproj index dabafab..adef42a 100644 --- a/CS.Changelog.Console/CS.Changelog.Console.csproj +++ b/CS.Changelog.Console/CS.Changelog.Console.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 flow-analysis true true @@ -16,14 +16,15 @@ A git-commit based changelog generator. - 1.5.0 - Cohelion 2023 + 1.6.0 + Cohelion 2024 MS-PL https://github.com/Cohelion/CS.Changelog https://github.com/Cohelion/CS.Changelog Git /// [SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "Option names follow naming conventions for command-line input")] - public class Options + [SuppressMessage("Maintainability", "CA1515:Consider making public types internal", Justification = "These options are parsed from oublic input.")] + public sealed class Options { /// Gets or sets the path to git. /// The path to git, defaults to git. diff --git a/CS.Changelog.Console/Program.cs b/CS.Changelog.Console/Program.cs index 31917d3..da1b438 100644 --- a/CS.Changelog.Console/Program.cs +++ b/CS.Changelog.Console/Program.cs @@ -48,12 +48,12 @@ static void Main(string[] args) return; // Validate some more - if (!Uri.TryCreate(_options.IssueTrackerUrl, UriKind.Absolute, out _)) + if (!string.IsNullOrEmpty(_options.IssueTrackerUrl) && !Uri.TryCreate(_options.IssueTrackerUrl, UriKind.Absolute, out _)) { System.Console.Error.WriteLine($"{nameof(Options.IssueTrackerUrl)} : {_options.IssueTrackerUrl} is not a valid url"); return; } - if (!Uri.TryCreate(_options.CommitDetailsUrl, UriKind.Absolute, out _)) + if (!string.IsNullOrEmpty(_options.CommitDetailsUrl) && !Uri.TryCreate(_options.CommitDetailsUrl, UriKind.Absolute, out _)) { System.Console.Error.WriteLine($"{nameof(Options.CommitDetailsUrl)} : {_options.CommitDetailsUrl} is not a valid url"); return; diff --git a/CS.Changelog.Tests/CS.Changelog.Tests.csproj b/CS.Changelog.Tests/CS.Changelog.Tests.csproj index 4c4f5a0..f7c2358 100644 --- a/CS.Changelog.Tests/CS.Changelog.Tests.csproj +++ b/CS.Changelog.Tests/CS.Changelog.Tests.csproj @@ -1,7 +1,7 @@ - + - net7.0 + net9.0 false flow-analysis true @@ -18,7 +18,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From d3826ad992ea256796005808eb5c34c27d7be153 Mon Sep 17 00:00:00 2001 From: Robert Sirre Date: Fri, 13 Dec 2024 13:17:46 +0100 Subject: [PATCH 09/12] Upgraded Markdig --- CS.Changelog/CS.Changelog.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CS.Changelog/CS.Changelog.csproj b/CS.Changelog/CS.Changelog.csproj index bb9356f..26d16fa 100644 --- a/CS.Changelog/CS.Changelog.csproj +++ b/CS.Changelog/CS.Changelog.csproj @@ -64,7 +64,7 @@ - + From 673628fd9d78e4f99db1d6bbbfc29471a5deeab9 Mon Sep 17 00:00:00 2001 From: Robert Sirre Date: Fri, 13 Dec 2024 13:18:27 +0100 Subject: [PATCH 10/12] Upgraded XUnit libs --- CS.Changelog.Tests/CS.Changelog.Tests.csproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CS.Changelog.Tests/CS.Changelog.Tests.csproj b/CS.Changelog.Tests/CS.Changelog.Tests.csproj index f7c2358..01c4b24 100644 --- a/CS.Changelog.Tests/CS.Changelog.Tests.csproj +++ b/CS.Changelog.Tests/CS.Changelog.Tests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -23,12 +23,12 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + From b2be2b57612c8b7a8af1710c07b95ffe1334c6b6 Mon Sep 17 00:00:00 2001 From: Robert Sirre Date: Fri, 13 Dec 2024 13:18:58 +0100 Subject: [PATCH 11/12] Upgraded Microsoft.NET.Test.Sdk --- CS.Changelog.Tests/CS.Changelog.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CS.Changelog.Tests/CS.Changelog.Tests.csproj b/CS.Changelog.Tests/CS.Changelog.Tests.csproj index 01c4b24..2706ab7 100644 --- a/CS.Changelog.Tests/CS.Changelog.Tests.csproj +++ b/CS.Changelog.Tests/CS.Changelog.Tests.csproj @@ -22,7 +22,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all From 17cd7ba732e2bfa8bbba6c4582e38e80e2f46c1e Mon Sep 17 00:00:00 2001 From: Atreyu Date: Mon, 26 Jan 2026 21:23:39 +0100 Subject: [PATCH 12/12] Enables package generation on build and adds publish profile Activates automatic package creation during build to streamline release workflows. Introduces a filesystem publish profile to simplify manual deployment processes. Also sets a consistent package identifier to improve package management. --- CS.Changelog.Console/CS.Changelog.Console.csproj | 3 ++- .../Properties/PublishProfiles/FolderProfile.pubxml | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 CS.Changelog.Console/Properties/PublishProfiles/FolderProfile.pubxml diff --git a/CS.Changelog.Console/CS.Changelog.Console.csproj b/CS.Changelog.Console/CS.Changelog.Console.csproj index adef42a..1c6d8c0 100644 --- a/CS.Changelog.Console/CS.Changelog.Console.csproj +++ b/CS.Changelog.Console/CS.Changelog.Console.csproj @@ -44,7 +44,7 @@ - false + True True changelog git changelog generator @@ -56,6 +56,7 @@ embedded ReadMe.md True + RobertSirre.Changelog.Console diff --git a/CS.Changelog.Console/Properties/PublishProfiles/FolderProfile.pubxml b/CS.Changelog.Console/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..12cead3 --- /dev/null +++ b/CS.Changelog.Console/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + Release + Any CPU + bin\Release\net9.0\publish\ + FileSystem + <_TargetId>Folder + + \ No newline at end of file