visual-studio-2017 - Office JS Addin Project will not start in VS 2019 but works fine in VS 2017
问题描述
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.
Environment
- Windows 10 Enterprise V 1809 Build 17763.1457
- Visual Studio Enterprise 2019 V 16.7.5
- Visual Studio Enterprise 2017 V 15.9.27
- Office 365 ProPlus
- Excel V 2002 (Build 12527.21104)
Steps to Reproduce issue
- Start VS 2019
- Select Create New Project
- Select Excel Web Add-in as the project type
- Select Next
- Name the solution or leave as default
- Select Create
- Choose Add new functionalities to Excel
- Select Finish
- Build the solution
- Right-Click on the project file for the addin (the one with the orange office logo) and select Debug -> Start a new Instance
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?
解决方案
This is a side effect of the fact that the JavaScript console was removed from VS 2019. You have to debug some other way
推荐阅读
- java - 测试框架应该驻留在 Maven 构建的哪个位置 - src/test/java 或 src/main/java?
- python - 如何在 python 中获取三个输入,其中两个是可选的
- java - 无效的 URI:content://***/my_images/JPEG_20210524_115135_2243630097715646442.jpg
- selenium - 从值或文本获取 XPath
- javascript - Chart.js 不显示/跳过标签
- php - 使用 lumen/php 从 Amazon S3 下载文件
- r - 是否可以在 RStudio 中检索控制台输出历史记录?
- adminlte - 如何记住 AdminLTE3 侧边栏的切换状态?
- bash - 如何将字符串列表与另一个文件匹配并打印前一行以进行多个匹配?
- angular - Angular:异步管道和绘图 svg