From 89c2446bc61d234331d1e7ea9737e78399623ecb Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:30:21 +0900 Subject: [PATCH 1/2] chore: Disable test for non-test project --- test/Docfx.Tests.Common/Docfx.Tests.Common.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Docfx.Tests.Common/Docfx.Tests.Common.csproj b/test/Docfx.Tests.Common/Docfx.Tests.Common.csproj index c4fb3d0673d..5ba17a6a447 100644 --- a/test/Docfx.Tests.Common/Docfx.Tests.Common.csproj +++ b/test/Docfx.Tests.Common/Docfx.Tests.Common.csproj @@ -1,4 +1,8 @@ + + false + + From cd3987ba5caaf22d2232dee1c22ddd21f1c062c4 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sat, 19 Oct 2024 15:04:59 +0900 Subject: [PATCH 2/2] chore: remove .NET 6 target from Snapshot.Tests --- test/docfx.Snapshot.Tests/SamplesTest.cs | 2 ++ test/docfx.Snapshot.Tests/docfx.Snapshot.Tests.csproj | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/test/docfx.Snapshot.Tests/SamplesTest.cs b/test/docfx.Snapshot.Tests/SamplesTest.cs index 397cd2bbabc..662345724fb 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.cs +++ b/test/docfx.Snapshot.Tests/SamplesTest.cs @@ -37,6 +37,8 @@ private class SamplesFactAttribute : FactAttribute { public SamplesFactAttribute() { + // When target framework is changed. + // It need to modify TargetFrameworks property of `docfx.Snapshot.Tests.csproj` #if !NET8_0 Skip = "Skip by target framework"; #endif diff --git a/test/docfx.Snapshot.Tests/docfx.Snapshot.Tests.csproj b/test/docfx.Snapshot.Tests/docfx.Snapshot.Tests.csproj index 24c17a9ecf2..56c718ed26b 100644 --- a/test/docfx.Snapshot.Tests/docfx.Snapshot.Tests.csproj +++ b/test/docfx.Snapshot.Tests/docfx.Snapshot.Tests.csproj @@ -1,4 +1,8 @@ + + net8.0 + +