Skip to content

Commit 3596643

Browse files
committed
migrate to NUnit 4.x
1 parent bc52d59 commit 3596643

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/Directory.Build.props

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,16 @@ SPDX-License-Identifier: MIT
2626
/>
2727

2828
<ItemGroup Condition=" '$(IsTestProject)' == 'true' ">
29-
<PackageReference Include="NUnit" Version="3.13.3" />
30-
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
29+
<PackageReference Include="NUnit" Version="4.0.1" />
30+
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
3131
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
32+
<!--
33+
Workaround for the NUnit issue.
34+
Manually add a reference to System.Threading.Tasks.Extensions as essentially required by NUnit.
35+
This may be fixed in NUnit 4.1.
36+
ref: https://github.com/nunit/nunit/issues/4581
37+
-->
38+
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" Condition="$(TargetFramework.StartsWith('net4'))" />
3239
<PackageReference
3340
Include="Smdn.MSBuild.DefineConstants.NETSdkApi"
3441
Version="[1.4.0]"

0 commit comments

Comments
 (0)