Skip to content

Commit b39dcef

Browse files
committed
Fixed local errors in .NET Core 2.1 unit tests
1 parent 41f474e commit b39dcef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UnitTests/UnitTests.NetCore/UnitTests.NetCore.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
<PackageReference Include="MSTest.TestFramework" Version="2.1.0" />
1313
</ItemGroup>
1414

15+
<!-- Workaround for the .NET Core 2.1 binary not resolving the Unsafe assembly properly -->
16+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
17+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.7.1" />
18+
</ItemGroup>
19+
1520
<ItemGroup>
1621
<ProjectReference Include="..\..\Microsoft.Toolkit\Microsoft.Toolkit.csproj" />
1722
</ItemGroup>

0 commit comments

Comments
 (0)