Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
clairernovotny committed Jan 26, 2022
1 parent 7d6d860 commit 181c6c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Refit.Tests/InterfaceStubGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -858,7 +858,7 @@ public interface IBoringCrudApi<T, in TKey> where T : class
Task<T> 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);
Expand Down
11 changes: 5 additions & 6 deletions Refit.Tests/Refit.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Refit\targets\refit.props"/>
<Import Project="..\Refit\targets\refit.props" />

<PropertyGroup>
<TargetFrameworks>net5.0;netcoreapp2.1;netcoreapp3.1;net461</TargetFrameworks>
<TargetFrameworks>net6.0;netcoreapp3.1;net461</TargetFrameworks>
<Deterministic>false</Deterministic> <!-- Some tests rely on CallerFilePath -->
</PropertyGroup>

Expand All @@ -18,19 +18,18 @@
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="System.Reactive" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.0-4.21423.7" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit" Version="1.1.0" />
<PackageReference Include="RichardSzalay.MockHttp" Version="6.0.0" />
<ProjectReference Include="..\Refit.HttpClientFactory\Refit.HttpClientFactory.csproj" />
<ProjectReference Include="..\Refit.Newtonsoft.Json\Refit.Newtonsoft.Json.csproj" />
<ProjectReference Include="..\InterfaceStubGenerator.Roslyn38\InterfaceStubGenerator.Roslyn38.csproj"
OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
<ProjectReference Include="..\InterfaceStubGenerator.Roslyn38\InterfaceStubGenerator.Roslyn38.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
<ProjectReference Include="..\InterfaceStubGenerator.Roslyn40\InterfaceStubGenerator.Roslyn40.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net461' ">
<Reference Include="System.Net.Http" />
</ItemGroup>

<Import Project="..\Refit\targets\refit.targets"/>
<Import Project="..\Refit\targets\refit.targets" />
</Project>
4 changes: 2 additions & 2 deletions Refit/Refit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Condition="'$(TargetFramework)' != 'net5.0'" Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
<PackageReference Condition="'$(TargetFramework)' != 'net6.0'" Include="System.Text.Json" Version="6.0.1" />
<PackageReference Include="System.Net.Http.Json" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
Expand Down

0 comments on commit 181c6c4

Please sign in to comment.