不支持的框架错误 NUnit 和 MonoDevelop



我有最新版本的MonoDevelop(5.10(和NUnit(3.6.1从官方NuGet Gallery安装(,每次我尝试运行测试时,我都会收到错误

UnsupportedFrameworkException: Skipped loading assembly ... because it references an unsupported version of the nunit.framework 3.6.1.0

我能做些什么呢?

你显然试图从MonoDevelop内部运行测试,它只支持NUnit到2.4.8。

您需要安装并运行 nunit 控制台运行程序。使用 NUnit.ConsoleRunner nuget 包并运行包含在包中的 nunit3-console。

最新更新