From aceefaf617950095a74a716c39a2bdf86cf506fc Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 11 Feb 2024 20:18:59 +1100 Subject: [PATCH] scrub TargetFrameworkAttribute from api approval --- .../PublicApiApprovalTest.approve_public_api.approved.txt | 1 - src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.cs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt index 746484da8..5b8dc4827 100644 --- a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt +++ b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt @@ -1,5 +1,4 @@ [assembly: System.Resources.NeutralResourcesLanguageAttribute("en")] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName="")] namespace Humanizer { public class static ByteSizeExtensions diff --git a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.cs b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.cs index c6d499cc9..0c8701f7f 100644 --- a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.cs +++ b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.cs @@ -38,6 +38,7 @@ private static string Filter(string text) { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries) + .Where(l => !l.StartsWith("[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(")) .Where(l => !l.StartsWith("[assembly: AssemblyVersion(")) .Where(l => !l.StartsWith("[assembly: AssemblyFileVersion(")) .Where(l => !l.StartsWith("[assembly: AssemblyInformationalVersion("))