From 0560fd4d092543fed74b6e57a376fccd4ffa3ba3 Mon Sep 17 00:00:00 2001 From: Hardy Hobeck Date: Tue, 4 Apr 2023 09:34:13 +0200 Subject: [PATCH] Link StringExtensions class as reference to new-cli solution --- new-cli/Directory.Build.props | 1 + .../Extensions/StringExtensions.cs | 18 ------------------ .../GitVersion.Common/GitVersion.Common.csproj | 1 + 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 new-cli/GitVersion.Common/Extensions/StringExtensions.cs diff --git a/new-cli/Directory.Build.props b/new-cli/Directory.Build.props index 00858bc1be..28d31920d5 100644 --- a/new-cli/Directory.Build.props +++ b/new-cli/Directory.Build.props @@ -16,6 +16,7 @@ + diff --git a/new-cli/GitVersion.Common/Extensions/StringExtensions.cs b/new-cli/GitVersion.Common/Extensions/StringExtensions.cs deleted file mode 100644 index 6a47c5a5e5..0000000000 --- a/new-cli/GitVersion.Common/Extensions/StringExtensions.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace GitVersion.Extensions -{ - public static class StringExtensions - { - public static bool IsEquivalentTo(this string self, string? other) => - string.Equals(self, other, StringComparison.OrdinalIgnoreCase); - - /// - public static bool IsNullOrEmpty([NotNullWhen(false)] this string? value) => string.IsNullOrEmpty(value); - - /// - public static bool IsNullOrWhiteSpace([NotNullWhen(false)] this string? value) => string.IsNullOrWhiteSpace(value); - - public static bool IsEmpty([NotNullWhen(false)] this string? value) => string.Empty.Equals(value); - } -} diff --git a/new-cli/GitVersion.Common/GitVersion.Common.csproj b/new-cli/GitVersion.Common/GitVersion.Common.csproj index 0284be2ba5..6b7ac37412 100644 --- a/new-cli/GitVersion.Common/GitVersion.Common.csproj +++ b/new-cli/GitVersion.Common/GitVersion.Common.csproj @@ -3,6 +3,7 @@ + Git\AuthenticationInfo.cs