简体   繁体   English

宏在VS2005中不再起作用

[英]Macros no longer working in VS2005

I'm using VS2005 on Vista. 我在Vista上使用VS2005。 I'm using some macros, but now they have suddenly stopped working. 我正在使用一些宏,但是现在它们突然停止工作了。 No error messages of any kind. 没有任何错误消息。 I am not aware of having done anything that could trigger this. 我不知道有什么事情可以触发。

  • I have made sure that "Allow macros to run" is checked in Tools->Options->Addin/Macro Security. 我确保在“工具”->“选项”->“插件/宏安全性”中选中了“允许运行宏”。
  • I have tried running the macros from a keyboard shortcut, from the Macro Explorer, and from the Macros IDE, all in vain: The little spinning icon displays shortly (<1 sec) and then disappears without the macro being executed. 我试图从键盘快捷键,宏浏览器和宏IDE中运行宏,但徒劳无功:旋转的小图标很快显示(<1秒),然后消失而没有执行宏。
  • I have tried putting a breakpoint on the first line of the macro and then executing it from the main IDE, with no effect (the breakpoint isn't hit). 我尝试在宏的第一行上放置一个断点,然后从主IDE执行该断点,但没有任何效果(该断点未命中)。
  • I have tried the same from the Macro IDE: The state changes to "running", but the breakpoint isn't hit. 我已经从Macro IDE尝试了相同的操作:状态更改为“正在运行”,但未命中断点。 I have to break the execution manually. 我必须手动中断执行。

Any ideas? 有任何想法吗?

Back up your settings before trying this, but you can go to the the folder that devenv runs from, in a command window and try this command: 在尝试此操作之前,请备份您的设置,但是您可以在命令窗口中转到devenv运行的文件夹,然后尝试以下命令:

devenv /resetskippkgs

Here's a link on MSDN: http://msdn.microsoft.com/en-us/library/ms241276%28VS.80%29.aspx 这是MSDN上的链接: http : //msdn.microsoft.com/zh-cn/library/ms241276%28VS.80%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM