在 Blend 4 中构建 C# 解决方案(包括 UnitTests),无需 Visual Studio 2010
如何在不安装 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用另一个框架进行单元测试,例如 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/