Skip to content

Commit

Permalink
Fixing compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed Apr 5, 2024
1 parent 229550a commit 51abdef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Expand Up @@ -18,7 +18,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'netstandard2.0'">
<PropertyGroup Condition="'$(TargetFramework)' == 'net471' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net48'">
<AddSystemTextJson>true</AddSystemTextJson>
<AddNullable>true</AddNullable>
</PropertyGroup>
Expand Down
4 changes: 1 addition & 3 deletions src/RestSharp/RestSharp.csproj
Expand Up @@ -5,11 +5,9 @@
<ItemGroup>
<None Remove="RestSharp.csproj.DotSettings"/>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net471'">
<ItemGroup Condition="'$(TargetFramework)' == 'net471' Or '$(TargetFramework)' == 'net48'">
<Reference Include="System.Net.Http"/>
<Reference Include="System.Web"/>
<PackageReference Include="Nullable" PrivateAssets="All"/>
<PackageReference Include="System.Text.Json"/>
</ItemGroup>
<ItemGroup Condition="$(AddNullable) == 'true'">
<PackageReference Include="Nullable" PrivateAssets="All"/>
Expand Down
2 changes: 1 addition & 1 deletion test/Directory.Build.props
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="AutoFixture" />
<PackageReference Include="FluentAssertions" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework) == 'net472'">
<ItemGroup Condition="$(TargetFramework) == 'net48'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net472" PrivateAssets="All"/>
</ItemGroup>

Expand Down
12 changes: 6 additions & 6 deletions test/RestSharp.Tests.Shared/Fixtures/RequestBodyCapturer.cs
@@ -1,14 +1,14 @@
namespace RestSharp.Tests.Integrated.Fixtures;
namespace RestSharp.Tests.Shared.Fixtures;

public class RequestBodyCapturer {
public const string Resource = "/capture";

public string? ContentType { get; private set; }
public bool HasBody { get; private set; }
public string? Body { get; private set; }
public Uri? Url { get; private set; }
public string ContentType { get; private set; }
public bool HasBody { get; private set; }
public string Body { get; private set; }
public Uri Url { get; private set; }

public bool CaptureBody(string? content) {
public bool CaptureBody(string content) {
Body = content;
HasBody = !string.IsNullOrWhiteSpace(content);
return true;
Expand Down
1 change: 0 additions & 1 deletion test/RestSharp.Tests.Shared/Fixtures/WireMockExtensions.cs
@@ -1,4 +1,3 @@
using RestSharp.Tests.Integrated.Fixtures;
using WireMock.RequestBuilders;
using WireMock.ResponseBuilders;
using WireMock.Server;
Expand Down

0 comments on commit 51abdef

Please sign in to comment.