“运行 PEX”右键单击时不出现
我在 Windows XP 计算机上运行 VS2010 Pro。 我已经下载并安装了 PEX &鼹鼠。一切都很顺利。 当我打开一个 C# 项目并将光标放在类方法上并右键单击时,我没有看到“运行 pex”或“pex”选项,根据(安装)文档应该是这种情况。
据我所知,我已经按照书本做了所有的事情,但没有快乐。 我似乎忘记了什么地方,但是什么呢?谁能帮帮我?
I run VS2010 Pro on a Windows XP machine.
I have downloaded and installed PEX & Moles. That all went fine.
When I open a C#-project and position the cursor on a class method and rightclick, I see no 'run pex' or 'pex' choice, as should be the case according to (install) docu.
As far as I could see I have done all by the book, but no joy.
It seems I forget something somewhere but what? Who can help me out?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我向我的项目添加对 Pex 的引用时,我注意到了相同的功能。当我删除它并右键单击方法主体时,我可以看到“Run Pex”和“Pex”。
我相信,如果我错了,有人会纠正我,您只需要在测试项目中引用 Microsoft.Pex.Framework,而不是您正在测试的项目。
I have noticed the same functionality when I added a reference to Pex to my project. When I removed it and right clicked the method body, then I could see "Run Pex" and "Pex."
I believe, and someone correct me if I am wrong, that you only need to reference the Microsoft.Pex.Framework in your Test project, not the project you are testing.
我也有同样的问题。我关闭了视觉工作室并再次打开它。瞧,它就在那里。
所以,我认为问题是当安装 Pex 时,我的 VS2010 项目是打开的。 Pex安装后无法检测到。如果关闭项目并再次打开它,则会显示该选项。
I had the same problem. I closed visual studio and opened it again. Voila, it's there.
So, I think the issue is when the Pex was installed, my VS2010 project was open. It can't detect it after Pex was installed. If you close the project and open it again, the option shows up.