From c1e97be67052a1b9a6877626e61567648330ec80 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:19:45 +0200 Subject: [PATCH 01/21] Update Azure.Identity to "1.21.0" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 5a1a8e0e..0048aae2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,7 +4,7 @@ true - + From 7d205e309dc2fe1b2fcdfcd96bc98ceb15a44902 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:20:09 +0200 Subject: [PATCH 02/21] Update Azure.Security.KeyVault.Certificates to "4.9.0" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 0048aae2..49e34ee7 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,7 +5,7 @@ - + From 4fb9d416102094a6c3bc6658fdb9a96d86129388 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:20:29 +0200 Subject: [PATCH 03/21] Update Azure.Security.KeyVault.Keys to "4.10.0" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 49e34ee7..b903c30d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ - + From c28b8d2664e9e6995cd256e132a881c134b9424d Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:20:43 +0200 Subject: [PATCH 04/21] Update Azure.Security.KeyVault.Secrets to "4.11.0" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index b903c30d..694219fa 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,7 +7,7 @@ - + From 4d91832a4cd438ecb694e335fa0be1b9ae54efe7 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:21:41 +0200 Subject: [PATCH 05/21] Update Basic.Reference.Assemblies.NetStandard20 to "1.8.9" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 694219fa..6b7b6307 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -8,7 +8,7 @@ - + From 42127215338e80e4b8e0f7e0031f5f6ed73d56cf Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:31:03 +0200 Subject: [PATCH 06/21] Update coverlet.msbuild to "10.0.1" --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 6b7b6307..de4b01a9 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -34,7 +34,7 @@ - + @@ -88,4 +88,4 @@ - \ No newline at end of file + From b5132dd7829763b3f42277b46e8929375e7735eb Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:31:48 +0200 Subject: [PATCH 07/21] Update GitHubActionsTestLogger to "3.0.4" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index de4b01a9..29980a2c 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -36,7 +36,7 @@ - + From 92ece3dc7621b74fdc66d342717f9983ce3e5bfb Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:32:11 +0200 Subject: [PATCH 08/21] Update HtmlAgilityPack to "1.12.4" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 29980a2c..41dc09c8 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -11,7 +11,7 @@ - + From ca094f80db70af4a5d58085713a8c5399ce85fec Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:32:33 +0200 Subject: [PATCH 09/21] Update Humanizer to "3.0.10" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 41dc09c8..82270b71 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -12,7 +12,7 @@ - + From f2a55c9b78bb34c406770c40e298033b994f3256 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:46:43 +0200 Subject: [PATCH 10/21] Fix warnings --- src/Fallout.Build/Telemetry/Telemetry.cs | 4 +--- src/Fallout.Cli/Commands/IFalloutCommand.cs | 1 + src/Persistence/Fallout.Persistence.Solution/Shims.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Fallout.Build/Telemetry/Telemetry.cs b/src/Fallout.Build/Telemetry/Telemetry.cs index 0f787841..053f81f6 100644 --- a/src/Fallout.Build/Telemetry/Telemetry.cs +++ b/src/Fallout.Build/Telemetry/Telemetry.cs @@ -27,8 +27,6 @@ internal static partial class Telemetry private const string VersionPropertyName = "FalloutTelemetryVersion"; private const string LegacyVersionPropertyName = "NukeTelemetryVersion"; - private static readonly int? s_confirmedVersion; - static Telemetry() { var optoutParameter = ParameterService.GetParameter(OptOutEnvironmentKey) @@ -123,4 +121,4 @@ private static void WaitForEnter() response = Console.ReadKey(intercept: true).Key; } while (response != ConsoleKey.Enter); } -} \ No newline at end of file +} diff --git a/src/Fallout.Cli/Commands/IFalloutCommand.cs b/src/Fallout.Cli/Commands/IFalloutCommand.cs index f583aa87..b85932af 100644 --- a/src/Fallout.Cli/Commands/IFalloutCommand.cs +++ b/src/Fallout.Cli/Commands/IFalloutCommand.cs @@ -19,6 +19,7 @@ internal interface IFalloutCommand /// The command name as typed after the : prefix (prefer dash form, e.g. "add-package").\ /// Matched case-insensitively and with dashes ignored (so :addpackage also matches).\ /// Legacy commands may still use PascalCase names (e.g. "GetNextDirectory"). + /// string Name { get; } /// diff --git a/src/Persistence/Fallout.Persistence.Solution/Shims.cs b/src/Persistence/Fallout.Persistence.Solution/Shims.cs index ad41e9a3..9e7be05e 100644 --- a/src/Persistence/Fallout.Persistence.Solution/Shims.cs +++ b/src/Persistence/Fallout.Persistence.Solution/Shims.cs @@ -21,7 +21,7 @@ public static bool Contains(this string str, char c) return str.Contains(c.ToString()); } - public static bool TryGetValue(this HashSet set, T equalValue, out T actualValue) + public static bool TryGetValue(this HashSet set, T equalValue, out T? actualValue) { foreach (var item in set) { From 0dcf00dfa3f55aa1ea128bacd0a8b404235eeac4 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:47:36 +0200 Subject: [PATCH 11/21] Update Scriban to "7.2.5" --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 82270b71..81f705dd 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -64,7 +64,7 @@ - + @@ -88,4 +88,4 @@ - + \ No newline at end of file From a72064a9a5e8631bc1f695607141a68f07f14596 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 18:48:52 +0200 Subject: [PATCH 12/21] Update Serilog to "4.3.1" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 81f705dd..ec5c72bf 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -19,7 +19,7 @@ - + From 9b764d2014d87335edf8ad42c0910b1957c63aab Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 20:06:58 +0200 Subject: [PATCH 13/21] Update xunit -> xunit.v3 / Verify.XunitV3 --- Directory.Build.props | 7 +++---- Directory.Packages.props | 9 ++++----- tests/Fallout.Common.Specs/CISpecs.cs | 3 +-- tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs | 2 +- .../Fallout.Utilities.Specs/IO/CompressionTasksSpecs.cs | 1 - .../IO/FileSystemDependentSpecs.cs | 7 +++---- tests/Fallout.Utilities.Specs/IO/MoveCopySpecs.cs | 1 - 7 files changed, 12 insertions(+), 18 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 7365dbf0..17994f94 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -53,15 +53,14 @@ - + - - + - + diff --git a/Directory.Packages.props b/Directory.Packages.props index ec5c72bf..d3f31aed 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -37,13 +37,12 @@ - + - - + - + @@ -88,4 +87,4 @@ - \ No newline at end of file + diff --git a/tests/Fallout.Common.Specs/CISpecs.cs b/tests/Fallout.Common.Specs/CISpecs.cs index 81d76213..a71f9a3c 100644 --- a/tests/Fallout.Common.Specs/CISpecs.cs +++ b/tests/Fallout.Common.Specs/CISpecs.cs @@ -126,9 +126,8 @@ private class CITheoryAttribute : TheoryAttribute public CITheoryAttribute(Type type) { + Skip = !IsRunning(_type) ? $"Only applies to {_type.Name}." : null; _type = type; } - - public override string Skip => !IsRunning(_type) ? $"Only applies to {_type.Name}." : null; } } diff --git a/tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs b/tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs index 0c00c7f8..7857c116 100644 --- a/tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs +++ b/tests/Fallout.Core.Specs/ArchitectureFitnessSpecs.cs @@ -1,9 +1,9 @@ -using System.Linq; using System.Reflection; using FluentAssertions; using Fallout.Core.Planning; using NetArchTest.Rules; using Xunit; +using TestResult = NetArchTest.Rules.TestResult; namespace Fallout.Core.Specs; diff --git a/tests/Fallout.Utilities.Specs/IO/CompressionTasksSpecs.cs b/tests/Fallout.Utilities.Specs/IO/CompressionTasksSpecs.cs index 7e8fd927..53c98ed7 100644 --- a/tests/Fallout.Utilities.Specs/IO/CompressionTasksSpecs.cs +++ b/tests/Fallout.Utilities.Specs/IO/CompressionTasksSpecs.cs @@ -4,7 +4,6 @@ using FluentAssertions; using Fallout.Common.IO; using Xunit; -using Xunit.Abstractions; namespace Fallout.Common.Specs; diff --git a/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs b/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs index 0de1336c..277a6167 100644 --- a/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs +++ b/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs @@ -4,7 +4,8 @@ using System.Reflection; using Fallout.Common; using Fallout.Common.IO; -using Xunit.Abstractions; +using Xunit; +using Xunit.Sdk; namespace Fallout.Common.Specs; @@ -21,9 +22,7 @@ protected FileSystemDependentSpecs(ITestOutputHelper testOutputHelper) { TestOutputHelper = testOutputHelper; - TestName = ((ITest) testOutputHelper.GetType() - .GetField("test", BindingFlags.NonPublic | BindingFlags.Instance).NotNull() - .GetValue(testOutputHelper).NotNull()).TestCase.TestMethod.Method.Name; + TestName = TestContext.Current.Test?.TestDisplayName; ExecutionDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location).NotNull(); RootDirectory = Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory); diff --git a/tests/Fallout.Utilities.Specs/IO/MoveCopySpecs.cs b/tests/Fallout.Utilities.Specs/IO/MoveCopySpecs.cs index 37729a38..f75c8710 100644 --- a/tests/Fallout.Utilities.Specs/IO/MoveCopySpecs.cs +++ b/tests/Fallout.Utilities.Specs/IO/MoveCopySpecs.cs @@ -4,7 +4,6 @@ using Fallout.Common.IO; using Fallout.Common.Utilities.Collections; using Xunit; -using Xunit.Abstractions; namespace Fallout.Common.Specs; From f78919bd1506bdfd51e7f138b634391742586300 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 20:08:14 +0200 Subject: [PATCH 14/21] Update System.Security.Cryptography.Xml to "10.0.9" --- build/_build.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/_build.csproj b/build/_build.csproj index cee68e3d..612df977 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -54,7 +54,7 @@ - + From d186daede77541feaa17ef92d64a59b3f871fe62 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 20:08:33 +0200 Subject: [PATCH 15/21] Update System.Text.Json to "10.0.9" --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index d3f31aed..a4649610 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -28,7 +28,7 @@ - + @@ -87,4 +87,4 @@ - + \ No newline at end of file From 6b1cfbd9d98d7c9eb161b0ba3c32ba31f9df94b9 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 20:09:19 +0200 Subject: [PATCH 16/21] Update YamlDotNet to "18.1.0" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index a4649610..d23d6e4d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -29,7 +29,7 @@ - + From aec865993b6e13a8d3bd227881ac887fa3a5d1ba Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 20:10:31 +0200 Subject: [PATCH 17/21] Update Verify.DiffPlex to "3.3.0" --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index d23d6e4d..0333b0a5 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -40,7 +40,7 @@ - + From ea4a0c2aa933d1bdd8cb3f5df0d72cc96d9a9d0d Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 20:11:53 +0200 Subject: [PATCH 18/21] Update Microsoft.Build* to "18.7.1" --- Directory.Packages.props | 8 ++++---- src/Fallout.MSBuildTasks/CodeGenerationTask.cs | 3 +-- tests/Fallout.ProjectModel.Specs/ProjectModelSpecs.cs | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 0333b0a5..cac8ad82 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -68,10 +68,10 @@ - - - - + + + + diff --git a/src/Fallout.MSBuildTasks/CodeGenerationTask.cs b/src/Fallout.MSBuildTasks/CodeGenerationTask.cs index 042b73cd..cdc92bb9 100644 --- a/src/Fallout.MSBuildTasks/CodeGenerationTask.cs +++ b/src/Fallout.MSBuildTasks/CodeGenerationTask.cs @@ -1,10 +1,9 @@ -using System; using System.Linq; using Microsoft.Build.Framework; using Fallout.CodeGeneration; using Fallout.CodeGeneration.Model; -using Fallout.Common.IO; using Fallout.Common.Utilities.Collections; +using AbsolutePath = Fallout.Common.IO.AbsolutePath; namespace Fallout.MSBuildTasks; diff --git a/tests/Fallout.ProjectModel.Specs/ProjectModelSpecs.cs b/tests/Fallout.ProjectModel.Specs/ProjectModelSpecs.cs index 37c2b26e..84d8bb16 100644 --- a/tests/Fallout.ProjectModel.Specs/ProjectModelSpecs.cs +++ b/tests/Fallout.ProjectModel.Specs/ProjectModelSpecs.cs @@ -25,7 +25,7 @@ public void ProjectSpec() project.GetTargetFrameworks().Should().Equal("net8.0", "net9.0", "net10.0"); project.HasPackageReference("Microsoft.Build.Locator").Should().BeTrue(); project.GetPackageReferenceVersion("Microsoft.Build.Locator").Should().Be("1.7.8"); - project.GetPackageReferenceVersion("Microsoft.Build").Should().Be("18.0.2"); + project.GetPackageReferenceVersion("Microsoft.Build").Should().Be("18.7.1"); } [Fact] From 71734a87ad8552ecd313081de706bc0b8912e974 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Thu, 9 Jul 2026 21:11:50 +0200 Subject: [PATCH 19/21] Opt-in to MTP --- Directory.Build.props | 1 + global.json | 11 +++++++---- src/Fallout.Components/ITest.cs | 18 +++++++++--------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 17994f94..14f67a96 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -7,6 +7,7 @@ embedded true true + true diff --git a/global.json b/global.json index 1e7fdfa9..5bb49fea 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,9 @@ { - "sdk": { - "version": "10.0.100", - "rollForward": "latestMinor" - } + "sdk": { + "version": "10.0.100", + "rollForward": "latestMinor" + }, + "test": { + "runner": "Microsoft.Testing.Platform" + } } diff --git a/src/Fallout.Components/ITest.cs b/src/Fallout.Components/ITest.cs index 537beb20..dda1cd84 100644 --- a/src/Fallout.Components/ITest.cs +++ b/src/Fallout.Components/ITest.cs @@ -94,15 +94,15 @@ IEnumerable GetOutcomes(AbsolutePath file) sealed Configure TestProjectSettingsBase => (_, v) => _ .SetProjectFile(v) - // https://github.com/Tyrrrz/GitHubActionsTestLogger - .When(GitHubActions.Instance is not null && v.HasPackageReference("GitHubActionsTestLogger"), _ => _ - .AddLoggers("GitHubActions;report-warnings=false")) - // https://github.com/JetBrains/TeamCity.VSTest.TestAdapter - .When(TeamCity.Instance is not null && v.HasPackageReference("TeamCity.VSTest.TestAdapter"), _ => _ - .AddLoggers("TeamCity") - // https://github.com/xunit/visualstudio.xunit/pull/108 - .AddRunSetting("RunConfiguration.NoAutoReporters", bool.TrueString)) - .AddLoggers($"trx;LogFileName={v.Name}.trx") + // // https://github.com/Tyrrrz/GitHubActionsTestLogger + // .When(GitHubActions.Instance is not null && v.HasPackageReference("GitHubActionsTestLogger"), _ => _ + // .AddLoggers("GitHubActions;report-warnings=false")) + // // https://github.com/JetBrains/TeamCity.VSTest.TestAdapter + // .When(TeamCity.Instance is not null && v.HasPackageReference("TeamCity.VSTest.TestAdapter"), _ => _ + // .AddLoggers("TeamCity") + // // https://github.com/xunit/visualstudio.xunit/pull/108 + // .AddRunSetting("RunConfiguration.NoAutoReporters", bool.TrueString)) + // .AddLoggers($"trx;LogFileName={v.Name}.trx") .When(InvokedTargets.Contains((this as IReportCoverage)?.ReportCoverage) || IsServerBuild, _ => _ .SetCoverletOutput(TestResultDirectory / $"{v.Name}.xml")); From b78b38c0047fa950515276033f9b607592764f8a Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 10 Jul 2026 11:40:46 +0200 Subject: [PATCH 20/21] Fix tests on windows --- tests/Fallout.Common.Specs/CISpecs.cs | 6 +++--- .../changelog_reference_NUKE_variant_1.verified.txt | 10 +++++----- .../changelog_reference_NUKE_variant_2.verified.txt | 8 ++++---- .../IO/FileSystemDependentSpecs.cs | 7 ++++++- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/tests/Fallout.Common.Specs/CISpecs.cs b/tests/Fallout.Common.Specs/CISpecs.cs index a71f9a3c..1bd35831 100644 --- a/tests/Fallout.Common.Specs/CISpecs.cs +++ b/tests/Fallout.Common.Specs/CISpecs.cs @@ -116,8 +116,8 @@ private static object CreateInstance(Type type) private static bool IsRunning(Type type) { - var property = type.GetProperty($"IsRunning{type.Name}", BindingFlags.NonPublic | BindingFlags.Static).NotNull(); - return (bool) property.GetValue(obj: null); + var property = type?.GetProperty($"IsRunning{type.Name}", BindingFlags.NonPublic | BindingFlags.Static).NotNull(); + return (bool?)property?.GetValue(obj: null) ?? false; } private class CITheoryAttribute : TheoryAttribute @@ -126,8 +126,8 @@ private class CITheoryAttribute : TheoryAttribute public CITheoryAttribute(Type type) { - Skip = !IsRunning(_type) ? $"Only applies to {_type.Name}." : null; _type = type; + Skip = !IsRunning(_type) ? $"Only applies to {_type.Name}." : null; } } } diff --git a/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt index c2b49667..fa4b0d9c 100644 --- a/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt +++ b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_1.verified.txt @@ -3,7 +3,7 @@ IsEmpty: true, Unreleased: true, Notes: [ - + ], StartIndex: 6, EndIndex: 7 @@ -15,7 +15,7 @@ Notes: [ - Added something, - Fixed something, - + ], StartIndex: 8, EndIndex: 11 @@ -26,7 +26,7 @@ Version: 1.2.2, Notes: [ - Fixed something, - + ], StartIndex: 12, EndIndex: 14 @@ -37,7 +37,7 @@ Version: 0.2.0, Notes: [ - Added something, - + ], StartIndex: 15, EndIndex: 17 @@ -54,4 +54,4 @@ StartIndex: 18, EndIndex: 21 } -] \ No newline at end of file +] diff --git a/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt index 8e7ed605..163a6cd4 100644 --- a/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt +++ b/tests/Fallout.Common.Specs/ChangelogReferenceFiles/changelog_reference_NUKE_variant_2.verified.txt @@ -4,7 +4,7 @@ Unreleased: true, Notes: [ - Changed something, - + ], StartIndex: 6, EndIndex: 8 @@ -15,12 +15,12 @@ Version: 1.0.0, Notes: [ - Some text that spans, - multiple lines, + multiple lines, - A text on a single line, , - Added something, - Fixed something, - + ], StartIndex: 9, EndIndex: 16 @@ -39,4 +39,4 @@ StartIndex: 17, EndIndex: 22 } -] \ No newline at end of file +] diff --git a/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs b/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs index 277a6167..053de65d 100644 --- a/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs +++ b/tests/Fallout.Utilities.Specs/IO/FileSystemDependentSpecs.cs @@ -2,6 +2,7 @@ using System.IO; using System.Linq; using System.Reflection; +using System.Text.RegularExpressions; using Fallout.Common; using Fallout.Common.IO; using Xunit; @@ -22,7 +23,11 @@ protected FileSystemDependentSpecs(ITestOutputHelper testOutputHelper) { TestOutputHelper = testOutputHelper; - TestName = TestContext.Current.Test?.TestDisplayName; + TestName = TestContext.Current.Test?.TestDisplayName ?? ""; + TestName = Regex.Replace(TestName, @"[<>:""/\\|?*\x00-\x1F]", "_").Trim().TrimEnd('.', ' '); + TestName = Regex.IsMatch(TestName, "^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$", RegexOptions.IgnoreCase) + ? $"_{TestName}" + : TestName; ExecutionDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location).NotNull(); RootDirectory = Constants.TryGetRootDirectoryFrom(EnvironmentInfo.WorkingDirectory); From f5d855f783816fcb8e24bd2d3eacffe9b242dab2 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 10 Jul 2026 11:55:41 +0200 Subject: [PATCH 21/21] Test --- .../Fallout.SourceGenerators.csproj | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Fallout.SourceGenerators/Fallout.SourceGenerators.csproj b/src/Fallout.SourceGenerators/Fallout.SourceGenerators.csproj index 4bb79c6b..d6dcf39d 100644 --- a/src/Fallout.SourceGenerators/Fallout.SourceGenerators.csproj +++ b/src/Fallout.SourceGenerators/Fallout.SourceGenerators.csproj @@ -25,11 +25,13 @@ + + @@ -39,13 +41,14 @@ - - - - + + + + - + +