From 51622f03cfcfb67cc37b4c6735e33f687235b5a2 Mon Sep 17 00:00:00 2001 From: Frederik Krogsdal Jacobsen Date: Fri, 27 Feb 2026 13:01:28 +0100 Subject: [PATCH] Make test frameworks match target framework. Since nothing else in the solution used netstandard2.0, using it in the test framework would make NuGet unable to find the netstandard2.0 packages unless they were preinstalled in the machine cache because of some other project. --- .../DoNotUseYourOwnRandomAnalyzerTests.fs | 2 +- .../MissingTypeAnnotationInlineDataAnalyzerTests.fs | 2 +- .../MissingUnitArgumentFactAnalyzerTests.fs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/FSharp.Analyzers.Tests/DoNotUseYourOwnRandomAnalyzerTests.fs b/tests/FSharp.Analyzers.Tests/DoNotUseYourOwnRandomAnalyzerTests.fs index 75ce974..1114780 100644 --- a/tests/FSharp.Analyzers.Tests/DoNotUseYourOwnRandomAnalyzerTests.fs +++ b/tests/FSharp.Analyzers.Tests/DoNotUseYourOwnRandomAnalyzerTests.fs @@ -12,7 +12,7 @@ open Idura.FSharp.Analyzers.DoNotUseYourOwnRandomAnalyzer let setupContext () = async { let! opts = mkOptionsFromProject - "netstandard2.0" // ensures compatibility with both .NET Framework and newer .NET versions + "net9.0" [] |> Async.AwaitTask return opts diff --git a/tests/FSharp.Analyzers.Tests/MissingTypeAnnotationInlineDataAnalyzerTests.fs b/tests/FSharp.Analyzers.Tests/MissingTypeAnnotationInlineDataAnalyzerTests.fs index b76429a..a0d7978 100644 --- a/tests/FSharp.Analyzers.Tests/MissingTypeAnnotationInlineDataAnalyzerTests.fs +++ b/tests/FSharp.Analyzers.Tests/MissingTypeAnnotationInlineDataAnalyzerTests.fs @@ -14,7 +14,7 @@ open Idura.FSharp.Analyzers.MissingTypeAnnotationInlineDataAnalyzer let setupContext () = async { let! opts = mkOptionsFromProject - "netstandard2.0" // ensures compatibility with both .NET Framework and newer .NET versions + "net9.0" [ { Name = "xunit" diff --git a/tests/FSharp.Analyzers.Tests/MissingUnitArgumentFactAnalyzerTests.fs b/tests/FSharp.Analyzers.Tests/MissingUnitArgumentFactAnalyzerTests.fs index 948f332..e559678 100644 --- a/tests/FSharp.Analyzers.Tests/MissingUnitArgumentFactAnalyzerTests.fs +++ b/tests/FSharp.Analyzers.Tests/MissingUnitArgumentFactAnalyzerTests.fs @@ -12,7 +12,7 @@ open Idura.FSharp.Analyzers.MissingUnitArgumentFactAnalyzer let setupContext () = async { let! opts = mkOptionsFromProject - "netstandard2.0" // ensures compatibility with both .NET Framework and newer .NET versions + "net9.0" [ { Name = "xunit"