Office JS 插件项目不会在 VS 2019 中启动,但在 VS 2017 中运行良好

编程入门 行业动态 更新时间:2024-10-25 20:17:28
本文介绍了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)

重现问题的步骤

  • 开始 VS 2019
  • 选择创建新项目
  • 选择 Excel Web Add-in 作为项目类型
  • 选择下一步
  • 为解决方案命名或保持默认
  • 选择创建
  • 选择向 Excel 添加新功能
  • 选择完成
  • 构建解决方案
  • 右键单击插件的项目文件(带有橙色办公室标志的那个)并选择调试 ->启动一个新实例
  • 弹出此错误消息.输出窗口显示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 中运行良好

    本文发布于:2023-11-17 14:01:05,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1610135.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:但在   会在   插件   项目   JS

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!