diff --git a/Refit.Tests/InterfaceStubGenerator.cs b/Refit.Tests/InterfaceStubGenerator.cs index adfc35bfb..153dfb302 100644 --- a/Refit.Tests/InterfaceStubGenerator.cs +++ b/Refit.Tests/InterfaceStubGenerator.cs @@ -30,11 +30,11 @@ public class InterfaceStubGeneratorTests static InterfaceStubGeneratorTests() { -#if NET5_0 +#if NET5_0_OR_GREATER ReferenceAssemblies = ReferenceAssemblies.Net.Net50; #else ReferenceAssemblies = ReferenceAssemblies.Default - .AddPackages(ImmutableArray.Create(new PackageIdentity("System.Text.Json", "5.0.1"))); + .AddPackages(ImmutableArray.Create(new PackageIdentity("System.Text.Json", "6.0.1"))); #endif #if NET461 @@ -64,7 +64,7 @@ public void GenerateInterfaceStubsSmokeTest() Assert.Empty(diags.Where(d => d.Severity == DiagnosticSeverity.Error)); var rundriver = driver.RunGeneratorsAndUpdateCompilation(inputCompilation, out var outputCompiliation, out var diagnostics); - + var runResult = rundriver.GetRunResult(); var generated = runResult.Results[0]; @@ -858,7 +858,7 @@ public interface IBoringCrudApi where T : class Task ReadOne(TKey key); [Put("/{key}")] - Task Update(TKey key, [Body]T payload); + Task Update(TKey key, [Body] T payload); [Delete("/{key}")] Task Delete(TKey key); diff --git a/Refit.Tests/Refit.Tests.csproj b/Refit.Tests/Refit.Tests.csproj index 8f40acb3d..42554e180 100644 --- a/Refit.Tests/Refit.Tests.csproj +++ b/Refit.Tests/Refit.Tests.csproj @@ -1,9 +1,9 @@  - + - net5.0;netcoreapp2.1;netcoreapp3.1;net461 + net6.0;netcoreapp3.1;net461 false @@ -18,13 +18,12 @@ - + - + @@ -32,5 +31,5 @@ - + diff --git a/Refit/Refit.csproj b/Refit/Refit.csproj index d7981364e..cd645a1eb 100644 --- a/Refit/Refit.csproj +++ b/Refit/Refit.csproj @@ -9,8 +9,8 @@ - - + +