Skip to content

Commit

Permalink
System.TypeLoadException : Could not load type 'HandlebarsDotNet.Poly… (
Browse files Browse the repository at this point in the history
#66)

* System.TypeLoadException : Could not load type 'HandlebarsDotNet.Polyfills.AsyncLocal`1'

- #65

* revert the changes to the unit-tests
  • Loading branch information
caoko authored Dec 19, 2022
1 parent b7a0893 commit 9aa738e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFrameworks>net451;net452;netstandard1.3;netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net451;net452;net46;netstandard1.3;netstandard2.0;netstandard2.1</TargetFrameworks>
<VersionPrefix>2.3.11</VersionPrefix>
<LangVersion>11</LangVersion>
<Nullable>enable</Nullable>
Expand Down
2 changes: 1 addition & 1 deletion src/Handlebars.Net.Helpers/HandlebarsHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using HandlebarsDotNet.Helpers.Utils;
using Stef.Validation;
using HandlebarsDotNet.Helpers.Models;
#if NETSTANDARD1_3_OR_GREATER
#if NETSTANDARD1_3_OR_GREATER || NET46_OR_GREATER
using System.Threading;
#else
using HandlebarsDotNet.Polyfills;
Expand Down
2 changes: 1 addition & 1 deletion src/Handlebars.Net.Helpers/Helpers/EvaluateHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using HandlebarsDotNet.PathStructure;
using Stef.Validation;
using HandlebarsDotNet.Helpers.Models;
#if NETSTANDARD1_3_OR_GREATER
#if NETSTANDARD1_3_OR_GREATER || NET46_OR_GREATER
using System.Threading;
#else
using HandlebarsDotNet.Polyfills;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net452;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net452;net46;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<RootNamespace>HandlebarsDotNet.Helpers.Tests</RootNamespace>
<AssemblyName>HandlebarsDotNet.Helpers.Tests</AssemblyName>
Expand Down

0 comments on commit 9aa738e

Please sign in to comment.