Office JS 插件项目不会在 VS 2019 中启动,但在 VS 2017 中运行良好 [英] Office JS Addin Project will not start in VS 2019 but works fine in VS 2017

查看:45
本文介绍了Office JS 插件项目不会在 VS 2019 中启动,但在 VS 2017 中运行良好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 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)

重现问题的步骤

  1. 开始 VS 2019
  2. 选择创建新项目
  3. 选择 Excel Web Add-in 作为项目类型
  4. 选择下一步
  5. 为解决方案命名或保持默认
  6. 选择创建
  7. 选择向 Excel 添加新功能
  8. 选择完成
  9. 构建解决方案
  10. 右键单击插件的项目文件(带有橙色办公室标志的那个)并选择调试 ->启动一个新实例

弹出此错误消息.输出窗口显示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 中运行良好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆