我无法在 Visual Studio 2019 中为 Office 项目启动调试会话,但它在 VS 2017 中的同一个项目中运行良好.如果重要的话,我们都有企业版.这显示了基本的 Office Excel Addin 项目类型,因此很容易重现.
I am unable to start a debugging session for the Office project in Visual Studio 2019 but it work fine from the same project in VS 2017. We have the enterprise version for both if that matters. This presents itself with the basic Office Excel Addin project type so is easy to reproduce.
环境
- Windows 10 企业版 V 1809 内部版本 17763.1457
- Visual Studio Enterprise 2019 V 16.7.5
- Visual Studio Enterprise 2017 V 15.9.27
- Office 365 专业增强版
- Excel V 2002(内部版本 12527.21104)
重现问题的步骤
弹出此错误消息.输出窗口显示Excel 退出,代码为 -1".我已将运行时日志记录添加到 Excel,这表明加载项已成功加载.我的 Google-fu 未能找到解决方案.有没有人看到这个或知道如何让它在 VS 2019 中工作?
This error message pops up. The Output window shows "Excel exited with code -1" I have added runtime logging to Excel which indicates the addin loaded successfully. My Google-fu has failed me in finding a resolution. Has anyone seen this or have an idea how to get it to work in VS 2019?
推荐答案这是 JavaScript 控制台从 VS 2019 中删除这一事实的副作用.您必须通过其他方式进行调试
This is a side effect of the fact that the JavaScript console was removed from VS 2019. You have to debug some other way
更多推荐
Office JS 插件项目不会在 VS 2019 中启动,但在 VS 2017 中运行良好
发布评论