Skip to content

Commit

Permalink
Merge pull request #32 from feinoujc/fix-target
Browse files Browse the repository at this point in the history
retarget to just netstandard2.0
  • Loading branch information
CraigHawker authored Jan 23, 2024
2 parents c6e04af + daa3dd5 commit c2fe4f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 0 additions & 7 deletions MFaaP.MFWSClient/MFWSClientBase.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using RestSharp;
using RestSharp.Serializers.Xml;
using RestSharp.Serializers;

namespace MFaaP.MFWSClient
{
Expand Down Expand Up @@ -35,8 +32,6 @@ public RestSharpRestClient(RestClientOptions options)
: base(options)
{
}

#if NETSTANDARD2_0_OR_GREATER
public RestSharpRestClient(HttpClient httpClient, bool disposeHttpClient = false)
: base(httpClient, disposeHttpClient)
{
Expand All @@ -47,8 +42,6 @@ public RestSharpRestClient(HttpMessageHandler httpMessageHandler, bool disposeHa
{

}
#endif

public Task<RestResponse<T>> ExecuteAsync<T>(RestRequest request, CancellationToken cancellationToken = default)
{
return RestClientExtensions.ExecuteAsync<T>(this, request, request.Method, cancellationToken);
Expand Down
6 changes: 1 addition & 5 deletions MFaaP.MFWSClient/MFaaP.MFWSClient.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net472;net48;net60;net70;net80</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

Expand All @@ -19,10 +19,6 @@
<ItemGroup>
<PackageReference Include="RestSharp" Version="108.0.2" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
<Reference Include="System.Web.dll" />
<Reference Include="System.Net.Http" Version="4.0.0.0" />
</ItemGroup>

<PropertyGroup>
<Authors>M-Files Corporation</Authors>
Expand Down

0 comments on commit c2fe4f5

Please sign in to comment.