Friday, August 18, 2017

Unable to add browser in Visual Studio for Office App

Leave a Comment

Using Visual Studio Enterprise 2015 Update 3, I create a new project following these steps:

  • File -> New -> Project -> Templates/Visual C#/ Office/SharePoint/Apps
  • Choose App for Office (.NET Framework 4.5.2)
  • In Create app for Office window, Check Task pane and do Next
  • Check Excel, PowerPoint and Word and click Finish

After creating the solution, In Solution Explorer Window, Select the first project (manifest project) and look at the Properties Window.

If I click the Start Action drop down list, I can only see Chrome and Edge browsers (were installed before visual studio).

I have installed FireFox after visual studio and I'm not unable to add it to Start Action drop down list. I want to debug my Office App in FireFox as well.

How can I fix this issue?

enter image description here

1 Answers

Answers 1

An Office add-in running in desktop Office, which it is where it runs when you are debugging it with Visual Studio on a Windows machine, uses IE under the hood. (For more info, see what-browser-browser-engine-do-office-add-ins-use.) You can't change this. The Start Action setting has no effect. You are always using IE when you press F5. In particular, the Start Action of the manifest project is irrelevant because the manifest doesn't run or get loaded into a browser.

If you want to test the add-in in Office Online, you can sideload it, and when you run it, it will use whatever browser you used to open Office Online.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment