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?