在 Blend 4 中构建 C# 解决方案(包括 UnitTests),无需 Visual Studio 2010

发布于 2024-10-30 03:05:34 字数 484 浏览 6 评论 0原文

如何在不安装 Visual Studio 2010 的情况下构建包含 Blend 4 中的单元测试的 C# 解决方案?

我得到的错误是:

 The reference could not be resolved. Microsoft.VisualStudio.QualityTools.UnitTestFramework

The type and Name space "VisualStudio" is not included in the Namespace "Microsoft" (is an assembly reference missing?)

什么方法可以在不安装 MS VS 的情况下让它工作吗?

更新:当我手动复制 Microsoft.VisualStuio.QualityTools.UnitTestFramework 的 dll 时,我仍然收到第二个错误。

how can one build a C# solution including the unit tests in Blend 4 without having Visual Studio 2010 installed?

The errors I get are:

 The reference could not be resolved. Microsoft.VisualStudio.QualityTools.UnitTestFramework

and

The type and Name space "VisualStudio" is not included in the Namespace "Microsoft" (is an assembly reference missing?)

Any way I can get this to work without installing MS VS?

Update: When I manually copy the dll for the Microsoft.VisualStuio.QualityTools.UnitTestFramework I still get the second error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戏剧牡丹亭 2024-11-06 03:05:34

您必须使用另一个框架进行单元测试,例如 NUnit。未安装 Visual Studio 单元测试框架,因为 Visual Studio 未安装。

http://www.nunit.org/

You have to use another framework for unit tests, such as NUnit. The Visual Studio unit test framework is not installed, as Visual Studio isn't.

http://www.nunit.org/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文