如何在 VS2015RC 中使用 NUnit 3

How to use NUnit 3 in VS2015RC

是否可以在 VS2015RC 中使用 NUnit3 Beta?

我刚刚创建了一个新的库项目(包)并添加了 NUnit 并创建了一个简单的测试来显示我遇到的错误。

它是否依赖于旧版本的框架?

project.json

测试Class

更新 Release Notes 说:

To work around this issue, follow these steps: Right-click the project in which the errors are reported in Solution Explorer, and then click Unload Project. Right-click again on the project in Solution Explorer, and then click Edit .

Note In this command, represents the actual project name. In the entry at the top of the project file that has no Condition attribute, add the following:

true Save and close the file. Right-click the project name in Solution Explorer, and then click Reload Project.

但是我无法让它工作,我只是在我的错误中收到更多警告和错误 window。

很可能你现在应该使用xUnit.net,

https://github.com/aspnet/Testing/issues/34

除非有人介入,否则不会移植 NUnit。