From 39410b16bc5f1b6f046ac094fe8085c3f8f31f6f Mon Sep 17 00:00:00 2001 From: Claire Novotny Date: Wed, 26 Jan 2022 12:38:41 -0500 Subject: [PATCH] Testing support for net6.0 --- NuGet.config | 7 +++++++ Refit.Tests/InterfaceStubGenerator.cs | 4 +++- Refit.Tests/Refit.Tests.csproj | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 NuGet.config diff --git a/NuGet.config b/NuGet.config new file mode 100644 index 0000000..fad8091 --- /dev/null +++ b/NuGet.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Refit.Tests/InterfaceStubGenerator.cs b/Refit.Tests/InterfaceStubGenerator.cs index 153dfb3..294cf4d 100644 --- a/Refit.Tests/InterfaceStubGenerator.cs +++ b/Refit.Tests/InterfaceStubGenerator.cs @@ -30,8 +30,10 @@ namespace Refit.Tests static InterfaceStubGeneratorTests() { -#if NET5_0_OR_GREATER +#if NET5_0 ReferenceAssemblies = ReferenceAssemblies.Net.Net50; +#elif NET6_0 + ReferenceAssemblies = ReferenceAssemblies.Net.Net60; #else ReferenceAssemblies = ReferenceAssemblies.Default .AddPackages(ImmutableArray.Create(new PackageIdentity("System.Text.Json", "6.0.1"))); diff --git a/Refit.Tests/Refit.Tests.csproj b/Refit.Tests/Refit.Tests.csproj index c7c165f..8d8dd17 100644 --- a/Refit.Tests/Refit.Tests.csproj +++ b/Refit.Tests/Refit.Tests.csproj @@ -19,7 +19,7 @@ - +