Skip to content

Commit

Permalink
Include System.Threading.Tasks.Extensions package ref for netstandard…
Browse files Browse the repository at this point in the history
… 2.0 only (#23)
  • Loading branch information
devodo authored Aug 23, 2022
1 parent 72e39f1 commit e964740
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/DivertR.DynamicProxy/DivertR.DynamicProxy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<PropertyGroup>
<LangVersion>9</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/DivertR/DispatchProxy/DispatchProxyFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public TTarget CreateProxy<TTarget>(IProxyCall<TTarget> proxyCall, TTarget? root

IProxyInvoker CreateProxyInvoker(TTarget proxy)
{
return new ProxyInvoker<TTarget>(proxyCall, proxy, root);
return new ProxyInvoker<TTarget>(proxyCall, proxy!, root);
}

return DiverterDispatchProxy.Create<TTarget>(CreateProxyInvoker);
Expand Down
3 changes: 2 additions & 1 deletion src/DivertR/DivertR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<PropertyGroup>
<LangVersion>9</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand All @@ -34,7 +35,7 @@
</PackageReference>
<PackageReference Include="System.Collections.Immutable" Version="1.6.0" />
<PackageReference Include="System.Reflection.DispatchProxy" Version="4.5.0" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion test/DivertR.UnitTests/MapTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DivertR.Record;
using DivertR.UnitTests.Model;
using Shouldly;
using Xunit;
Expand Down

0 comments on commit e964740

Please sign in to comment.