diff --git a/Funcky.Async/Funcky.Async.csproj b/Funcky.Async/Funcky.Async.csproj index 4b1de2e2..48f8169c 100644 --- a/Funcky.Async/Funcky.Async.csproj +++ b/Funcky.Async/Funcky.Async.csproj @@ -1,6 +1,7 @@ - net9.0;net8.0;net5.0;netstandard2.1;netstandard2.0 + net9.0 + $(FunckyNewestTargetFramework);net8.0;net5.0;netstandard2.1;netstandard2.0 preview enable Extends Funcky with support for IAsyncEnumerable and Tasks. @@ -43,7 +44,6 @@ - @@ -58,4 +58,5 @@ + diff --git a/Funcky.Xunit.v3/Funcky.Xunit.v3.csproj b/Funcky.Xunit.v3/Funcky.Xunit.v3.csproj index b24e3c87..764c381b 100644 --- a/Funcky.Xunit.v3/Funcky.Xunit.v3.csproj +++ b/Funcky.Xunit.v3/Funcky.Xunit.v3.csproj @@ -1,6 +1,7 @@  - netstandard2.0;net6.0 + net6.0 + $(FunckyNewestTargetFramework);netstandard2.0 preview enable Package to use Funcky with xUnit v3 @@ -36,7 +37,6 @@ - @@ -46,4 +46,5 @@ + diff --git a/Funcky.Xunit/Funcky.Xunit.csproj b/Funcky.Xunit/Funcky.Xunit.csproj index da520673..71d5d2a1 100644 --- a/Funcky.Xunit/Funcky.Xunit.csproj +++ b/Funcky.Xunit/Funcky.Xunit.csproj @@ -1,6 +1,7 @@ - netstandard2.0;net6.0 + net6.0 + $(FunckyNewestTargetFramework);netstandard2.0 preview enable Package to use Funcky with xUnit @@ -24,7 +25,6 @@ - @@ -35,4 +35,5 @@ + diff --git a/Funcky.sln b/Funcky.sln index af7e452f..bf42af62 100644 --- a/Funcky.sln +++ b/Funcky.sln @@ -27,6 +27,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Config", "Build Confi GlobalUsings.Test.props = GlobalUsings.Test.props NuGet.config = NuGet.config typos.toml = typos.toml + PublicApiAnalyzers.targets = PublicApiAnalyzers.targets EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Funcky.Xunit", "Funcky.Xunit\Funcky.Xunit.csproj", "{F2E98B0D-CC17-4576-89DE-065FF475BE6E}" diff --git a/Funcky/Funcky.csproj b/Funcky/Funcky.csproj index e5ed2376..8fa2c90f 100644 --- a/Funcky/Funcky.csproj +++ b/Funcky/Funcky.csproj @@ -1,6 +1,7 @@ - net9.0;net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netstandard2.0;netstandard2.1 + net9.0 + $(FunckyNewestTargetFramework);net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netstandard2.0;netstandard2.1 preview enable Funcky @@ -20,10 +21,8 @@ $(DefineConstants);CONTRACTS_FULL - net9.0 - @@ -34,11 +33,6 @@ - - - - - true true @@ -63,4 +57,5 @@ + diff --git a/PublicApiAnalyzers.targets b/PublicApiAnalyzers.targets new file mode 100644 index 00000000..de2c229d --- /dev/null +++ b/PublicApiAnalyzers.targets @@ -0,0 +1,24 @@ + + + + + + + + + + + + + $(CoreCompileDependsOn);_ValidateFunckyNewestTargetFrameworkIsSet + + + + <_Text>The 'FunckyNewestTargetFramework' property is not set; public API analyzers will not run + + + + +