Browse Source

Fix: missing TimeProvider type.

Akeit0 6 months ago
parent
commit
88ea493737
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Lua/Lua.csproj

+ 3 - 1
src/Lua/Lua.csproj

@@ -24,7 +24,9 @@
               Pack="true"
               Pack="true"
               Visible="false"/>
               Visible="false"/>
     </ItemGroup>
     </ItemGroup>
-
+    <ItemGroup Condition="$(TargetFramework) == 'net6.0' Or $(TargetFramework) == 'netstandard2.1'">
+        <PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.0"/>
+    </ItemGroup>
     <ItemGroup Condition="$(TargetFramework) == 'netstandard2.1'">
     <ItemGroup Condition="$(TargetFramework) == 'netstandard2.1'">
         <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0"/>
         <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0"/>
     </ItemGroup>
     </ItemGroup>