diff --git a/InterfaceStubGenerator.Roslyn40/InterfaceStubGenerator.Roslyn40.csproj b/InterfaceStubGenerator.Roslyn40/InterfaceStubGenerator.Roslyn40.csproj
index 4a8cded8d..ff5bcf9d7 100644
--- a/InterfaceStubGenerator.Roslyn40/InterfaceStubGenerator.Roslyn40.csproj
+++ b/InterfaceStubGenerator.Roslyn40/InterfaceStubGenerator.Roslyn40.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/NuGet.config b/NuGet.config
index f7d0724b7..fad809145 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -1,8 +1,6 @@
-
-
diff --git a/Refit.HttpClientFactory/Refit.HttpClientFactory.csproj b/Refit.HttpClientFactory/Refit.HttpClientFactory.csproj
index 7b536e22d..49a73c3f2 100644
--- a/Refit.HttpClientFactory/Refit.HttpClientFactory.csproj
+++ b/Refit.HttpClientFactory/Refit.HttpClientFactory.csproj
@@ -3,13 +3,17 @@
Refit HTTP Client Factory Extensions
Refit HTTP Client Factory Extensions
- net5.0;netcoreapp3.1;netstandard2.0
+ net6.0;net5.0;netcoreapp3.1;netstandard2.0
enable
-
+
+
+
+
+
diff --git a/Refit.Newtonsoft.Json/Refit.Newtonsoft.Json.csproj b/Refit.Newtonsoft.Json/Refit.Newtonsoft.Json.csproj
index f0fca8957..947da3c22 100644
--- a/Refit.Newtonsoft.Json/Refit.Newtonsoft.Json.csproj
+++ b/Refit.Newtonsoft.Json/Refit.Newtonsoft.Json.csproj
@@ -3,7 +3,7 @@
Refit Serializer for Newtonsoft.Json ($(TargetFramework))
Refit Serializers for Newtonsoft.Json
- net5.0;netstandard2.0;netstandard2.1;net461
+ net6.0;net5.0;netstandard2.0;net461
true
Refit
enable
diff --git a/Refit.Tests/InterfaceStubGenerator.cs b/Refit.Tests/InterfaceStubGenerator.cs
index adfc35bfb..294cf4db9 100644
--- a/Refit.Tests/InterfaceStubGenerator.cs
+++ b/Refit.Tests/InterfaceStubGenerator.cs
@@ -32,9 +32,11 @@ static InterfaceStubGeneratorTests()
{
#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", "5.0.1")));
+ .AddPackages(ImmutableArray.Create(new PackageIdentity("System.Text.Json", "6.0.1")));
#endif
#if NET461
@@ -64,7 +66,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 +860,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..8d8dd1748 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;net5.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..3e2240dc6 100644
--- a/Refit/Refit.csproj
+++ b/Refit/Refit.csproj
@@ -2,15 +2,15 @@
Refit ($(TargetFramework))
- net5.0;netstandard2.0;netstandard2.1;net461
+ net6.0;net5.0;netstandard2.0;netstandard2.1;net461
true
enable
-
-
+
+
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 039677270..289d87b6f 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -31,11 +31,10 @@ stages:
steps:
- task: UseDotNet@2
- displayName: Use .NET Core 5.x SDK
+ displayName: Use .NET 6.x SDK
inputs:
version: 6.x
performMultiLevelLookup: true
- includePreviewVersions: true
- task: UseDotNet@2
displayName: Use .NET Core 5.x Runtime