[英]Unable to add a reference to unit test project
I am setting up a unit test bench and as an example exercise created a simple calculator. 我正在建立一个单元测试台,并作为示例练习创建了一个简单的计算器。 I'd like to develop test cases for it. 我想为此开发测试用例。 When I try to add the project reference to the unit test project an error "Enable to add a reference to project 'Calculator'" appears. 当我尝试将项目引用添加到单元测试项目时,出现错误“能够向项目'Calculator'添加引用”。 No reason or corrective action is provided 没有提供原因或纠正措施
Initially I thought the reason was because developer mode was not enabled on my computer. 最初,我认为原因是因为计算机上未启用开发人员模式。 But the problem persists with developer mode on also. 但是问题仍然存在于开发人员模式下。
This issue has been resolved. 此问题已得到解决。 I created a unit test project in .net instead of universal windows application and it worked 我在.net中创建了一个单元测试项目,而不是通用Windows应用程序,并且它可以正常工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.