且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在终端服务器上调试VSTO加载项

更新时间:2023-12-05 21:14:40

一个同事能够找到解决方案:

A co-worker was able to find a solution:

通过从添加现有项目"对话框中浏览到Office安装路径,然后选择Outlook.exe,将Outlook.exe作为现有项目添加到Visual Studio解决方案中.

Add Outlook.exe to the Visual Studio solution as an existing project, by browsing to the Office installation path from the "Add existing project" dialog, and selecting Outlook.exe.

将Outlook项目设置为启动"项目.

Set the Outlook project as the StartUp project.

将Outlook项目调试器类型设置为"Managed v4.0".

Set the Outlook project Debugger Type to "Managed v4.0".

这允许调试像以前一样进行,但是跳过了已添加到VSTO的现有过程检查.

This allows debugging to work as it did before, but skips the existing process check that was added to VSTO.