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?
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.
Related
I recently came back to an Outlook add-in project, and I updated all of my Office apps. Outlook is currently Version 1906 (Build 11727.20244 Click-to-Run) on Windows 10 Pro (not running any insider’s version). However, after I open the add-in, no context menu opens when I right-click. I’m trying to debug the add-in running in native Outlook on Windows because something is broken (the same code works fine in OWA and Outlook for Mac).
I’m a bit stuck if I can’t attach a debugger. Nothing shows up in F12 developer tools either. However if I open the Insights add-in, I can right click and attach a debugger as you would expect.
Why would I not be able to even see the right-click context menu in my add-in?
However, after I open the add-in, no context menu opens when I right-click.
Try to create a new empty add-in in Visual Studio. If you get the context menu shown there, you just need to compare both projects and find the difference between them.
How do I enable debugging from VS2019 for my .NET app running in an Azure App Service? The portal only supports 2015 and 2017.
You can just connect from Visual Studio 2019 and it should all work without changing the portal settings.
Open Visual Studio and your project
Open Cloud Explorer View -> Cloud Explorer or ctrl+\, ctrl+x
Find your App Service node in Cloud Explorer and select it
Choose Attach Debugger from the context menu or the actions pane
The VS 2019 option doesn't display in the "Classic" Application settings screen, you will need to use the new Configuration menu, then choose the "General Settings" tab when the blade opens.
Have you downloaded and installed the VS 2019 Remote Tools?
https://visualstudio.microsoft.com/downloads/?q=remote+tools#remote-tools-for-visual-studio-2019 (see the bottom of the page)
I had the same problem. I closed VS 2019 and installed the Remote Tools. When I relaunched, I went to Cloud Explorer and i now have the menu items I'm expecting.
You can also set the remote debugging version to "VS2019" through https://resources.azure.com.
You'll need to find the Web App e.g. from under Subscription name / resourceGroups / RG name / providers / Microsoft.Web / sites.
Then open config / web.
Switch from Read Only to Read/Write at the top if you didn't.
Click Edit.
Modify the version and enable debugging by settings these under "properties":
"remoteDebuggingEnabled": true,
"remoteDebuggingVersion": "VS2019"
Click PUT.
I am working on a Xamarin.Forms project in Visual Studio and have recently got another laptop. I would like to be able to edit the project when using my work laptop so I searched online and found Visual Studio Online.
The problem is I don't know how to import my current project into the Visual Studio online to get it on the other laptop. I have tried watching tutorials but all others explain how to create a new project and couldn't find any tutorials online that explain it easily.
The first step is to sign up for Visual Studio Team Services and create a new project:
Make sure you select Team Foundation Version Control during this step.
Once the project is created, you can head over to Visual Studio and make sure you're connected to TFS (Team Foundation Server).
Open the Team Explorer panel if it isn't already open (you can find it in View->Team Explorer) and click "Connect"
Once you do that, a window will open that will allow you to sign into your Microsoft account that you used to create the TFS server. Once signed in, you can select your project and click "Connect"
Your project should open in the Team Explorer panel where you should then click "Configure Workspace"
Click "Advanced Options" and then change the Local Folder to point to the folder that contains the solution you want in source control.
Click okay and say no when it asks you if you want to get latest from source control.
You can now go to the "Pending Changes" page in the Team Explorer and click on "Detected XX add(s)" and then click "Promote" in the resulting dialog.
The final step is to add a comment and check in everything!
Your code is now in source control!
From here you can proceed like normal in setting up TFS on your new computer and getting your code from TFS!
In the past to connect to silverlight apps form Visual Studio I would go to Debug -> Attach To Process and then scroll down to where the type was Silverlight and attach to that.
Recently, silverlight types do not seem to show up in the attach to dialog.
What I have tried
Project Properties -> Web -> Debuggers and ensure Silverlight is ticked
Attaching to the same window as the silverlight is in
What I want to happen
To attach to silverlight apps from Visual Studio
What is happening
Silverlight apps do not show in the Attach To dialog
After a few days I found a solution.
Go to Programs and Features and Uninstall ONLY "Microsoft Silverlight". Once uninstalled go to https://www.microsoft.com/en-us/download/details.aspx?id=40633 and install either Silverlight_Developer.exe or Silverlight_Developer_x64.exe
This fixed the problem for me :)
I'm using Visual Studio Express 2012 for Window Desktop, can't create win32 project.
the windows that welcomes to the wizard has three empty bullets under "these are the current project settings". Both the cancel and the finish button do not work.
The folder for the application is created but no files inside.
http://m1306.hizliresim.com/1b/1/np8k5.png