From ecf1593038b6212ec98ee5acb34302e8e0875ba8 Mon Sep 17 00:00:00 2001 From: Jacob Parker Date: Wed, 7 Aug 2024 11:07:10 -0400 Subject: [PATCH] Default to .NET Standard 2.0 for all projects Moving this to the default because it makes sense: "annotations"-style DLLs we ship should probably target that for simplicity (the existing Annotations DLL also multi-targets net20 which we can probably drop?), and the analyzers have to target netstandard2.0. Our test projects will need to override this; currently we run our tests in net48 for some reason, but we should target net7/8/etc. I think. Overall I think this will keep the csproj's simpler, especially once I split the packages. --- Directory.Build.props | 1 + src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj | 2 -- src/D2L.CodeStyle.SpecTests/D2L.CodeStyle.SpecTests.csproj | 5 +---- .../D2L.CodeStyle.TestAnalyzers.csproj | 2 -- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 86609829..da43f3cb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,6 @@ + netstandard2.0 true 10.0 true diff --git a/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj b/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj index 1d0b724d..30010aff 100644 --- a/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj +++ b/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj @@ -1,8 +1,6 @@  - netstandard2.0 - D2L.CodeStyle.Analyzers D2L.CodeStyle D2L.CodeStyle analyzers diff --git a/src/D2L.CodeStyle.SpecTests/D2L.CodeStyle.SpecTests.csproj b/src/D2L.CodeStyle.SpecTests/D2L.CodeStyle.SpecTests.csproj index 790fa362..edfcb45d 100644 --- a/src/D2L.CodeStyle.SpecTests/D2L.CodeStyle.SpecTests.csproj +++ b/src/D2L.CodeStyle.SpecTests/D2L.CodeStyle.SpecTests.csproj @@ -1,7 +1,4 @@ - - netstandard2.0 - all @@ -16,4 +13,4 @@ - \ No newline at end of file + diff --git a/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj b/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj index fc80de0b..3a4014cb 100644 --- a/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj +++ b/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj @@ -1,8 +1,6 @@  - netstandard2.0 - D2L.CodeStyle.TestAnalyzers D2L.CodeStyle D2L.CodeStyle test analyzers