Skip to content

Commit

Permalink
Use conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty committed Oct 11, 2020
1 parent a297d52 commit d3f2e08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/FSharpPlus.Tests/Expr.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ module Expr =

areEqual "11" res

let quotseval x = FSharp.Quotations.Evaluator.QuotationEvaluator.EvaluateUntyped x
let quotseval x =
#if NETSTANDARD
FSharp.Quotations.Evaluator.QuotationEvaluator.EvaluateUntyped x
#else
Swensen.Unquote.Operators.evalRaw x
#endif
let unquote x = Swensen.Unquote.Operators.evalRaw x
let powerpack x = Microsoft.FSharp.Linq.QuotationEvaluator.EvaluateUntyped x

Expand Down
6 changes: 5 additions & 1 deletion tests/FSharpPlus.Tests/FSharpPlus.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<ProjectReference Include="..\CSharpLib\CSharpLib.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FSharp.Quotations.Evaluator" Version ="2.1.0"/>
<PackageReference Include="FSPowerPack.Linq.Community" Version="3.0.0" />
<PackageReference Include="System.Runtime" Version="4.3.1" />
<PackageReference Include="Unquote" Version="5.0.0" />
Expand All @@ -44,4 +43,9 @@
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
<PackageReference Include="FSharp.Quotations.Evaluator">
<Version>2.1.0</Version>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit d3f2e08

Please sign in to comment.