Outlook 加载项不会在调试模式下加载
Outlook Add-In Won't Load in Debug Mode
我要回到我去年写的 Outlook 加载项 - 加载项安装和 运行s 都很好(除了我正在尝试修复的代码问题)但是当我卸载它(因为我必须)并尝试 运行 调试模式下的代码 它可以很好地启动 Outlook ,但没有别的 - InternalStartup() 中的断点永远不会被击中, ThisAddIn_Startup().
中也没有
加载项列表在我尝试调试时不显示我的加载项,但它不会引发任何类型的错误或 window。只是... 什么都没有 发生。禁用的加载项列表也没有列出我的加载项。
我终于在 Dan Crevier 的博客上找到了答案 post:Debugging Outlook Add-ins Doesn't Work if You Have Disabled Add-ins:
[...] if you have any disabled Outlook add-ins, VS will not stop at any breakpoints in other add-ins. The fix is to reenable all add-ins.
这有点让我失望,因为我的 Outlook Add-in 被公司政策禁用了,但也许它会对其他人有所帮助。
我要回到我去年写的 Outlook 加载项 - 加载项安装和 运行s 都很好(除了我正在尝试修复的代码问题)但是当我卸载它(因为我必须)并尝试 运行 调试模式下的代码 它可以很好地启动 Outlook ,但没有别的 - InternalStartup() 中的断点永远不会被击中, ThisAddIn_Startup().
中也没有加载项列表在我尝试调试时不显示我的加载项,但它不会引发任何类型的错误或 window。只是... 什么都没有 发生。禁用的加载项列表也没有列出我的加载项。
我终于在 Dan Crevier 的博客上找到了答案 post:Debugging Outlook Add-ins Doesn't Work if You Have Disabled Add-ins:
[...] if you have any disabled Outlook add-ins, VS will not stop at any breakpoints in other add-ins. The fix is to reenable all add-ins.
这有点让我失望,因为我的 Outlook Add-in 被公司政策禁用了,但也许它会对其他人有所帮助。