Word task pane add-in - ms-word

I've followed the instructions from https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/word-quickstart?tabs=visualstudio but when I click the debug button in visual studio 2022 it opens word then I open the task pane and I get the following error " Add-In Error: The add-in could not be started. Please restart all Office applications and try again. "
I have also tried to create a new visual studio word add-in project and run that without using the html / js provided in the tutorial from microsoft above. When I do this I get the same error. Has anyone else run into this before? I'm not really sure what I'm supposed to do since the default project template won't even run.
Thank you in advance for your time and help.

Related

issues debugging using VS code

I'm developing an office-js taskpane add-in for Excel.
I am using VS code as the IDE and debugging environment.
After running a debug, more often than not I cannot run a second debugging session because VS code does not launch WebPack.
I end each debugging session simply by closing Excel. That also ends the session according to the VS code terminal. But if I hit F5 again, Excel starts immediately and webpack does not. I have to reboot the machine to get it working again.
Does anyone here know how I might fix this extremely annoying issue?
Here are a few links you may find helpful in debugging Office Add-ins:
Debug Office Add-ins
Attach a debugger from the task pane
Sideloading and Debugging Outlook Add-ins

The authentication in visual studio code gets cancelled

I have done on the coding part in visual studio code while using command palette to download symbols i can't able to download it rather in output it displays about the authentication has failed. How to solve that one ?

Error when launching Terminal in Visual Studio Code (terminated with exit code: 3221225477)

I'm a new user of Visual Studio Code and I came across the following error (see below) when trying to launch a Terminal inside VS Code.
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: 3221225477.
I've tried fixing this by following the instructions on [Visual Studio Code Troubleshoot Terminal] (https://code.visualstudio.com/docs/supporting/troubleshoot-terminal-launch) and also going through the Get Started documentation on the Visual Studio Code website.
I've also tried copying the error message and pasting on Google to search for a solution but only one relevant site came up here and I still could not find a fix.
I'm using a Dell XPS machine running Windows 10 (x64) and Visual Studio Code 1.51.0 (x64 UserSetup).
Can someone please assist? Thanks in advance!
Try the following:
If your computer is running powershell, turn it off.
Control Panel -> Programs -> Turn Windows features on of off
Search Window Powershell 2.0 -> Uncheckbox -> OK
Restart

Visual Studio Code: failed to load project file (works in VS2017)

I´m trying to use Visual Studio Code, so I installed the current version (1.25.0). I open the project folder and VSC starts doing stuff with OmniSharp, producing the following error:
(Sorry, error is in german, saying that the file or assembly could not be found and that it can´t load the project file .csproj)
So, I checked the folder: the file is there and visual studio 2017 loads and builds the project as expected.
I´m new to VSC, so please tell me if I need to provide more information from some VSC logs or something.
I´d like to be able to open the project and work with VSC, so thank you in advance for your help.
From the comment
I am assuming you have installed this? C # Extenstion for VSCode and you are trying to open a dotnet core application and not a full framework project?
The best way to go about is uninstall C# extension and you will be fine to open the code in vs code again.

Visual Studio TFS Plugin - How to register page?

I would like to develop a TFS plugin that displays a simple page in the Team Explorer. To do this, I loosely followed this project. I'm able to register a menu command, but when the command is invoked my page that I derive from TeamExplorerPageBase is unknown to the Team Explorer. The code to load the page is:
var teamExplorer = (ITeamExplorer)(this.ServiceProvider.GetService(typeof(ITeamExplorer)));
teamExplorer.NavigateToPage(new Guid(BiscomTfsLabelPage.Id), null);
the call to NavigateToPage returns an error:
So how do I register the page with Team Explorer??
UPDATE:
Looks like it's an issue with the debugger, because when I run the VSIX file that gets output by the build, then open a new instance of Visual Studio it works:
So now I'd really like to know if there's a way that I can debug the extension, since it doesn't seem to register the page if I use the debugger.
Since it works in a new instance of Visual Studio. You could try to debug it with a new opened Visual Studio.
Go to the properties of your project and look under the debug tab, find a Start Action. Select to "Start external program" and browse to where you have visual studio installed. C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe