Visual Studio TFS Plugin - How to register page? - plugins

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

Related

visual studio code on linux

I have visual studio code on linux . I want to use it as a code editor .and maybe debug it
(currently debug via gdb)
Downloaded a code of the (big) project from source control and compiled it from command line.
I don`t know how to open a project in visual studio code (it should also be configure to work with source control (git)).... can someone help

Encountered an error while publishing the vscode extension

When publishing your own vscode extension, it prompts "This extension targets Visual Studio 2017 but was not built with an up-to-date VSSDK. Please make sure to update your references and try uploading again. Note: you'll also need to add Prerequisites to your extension.vsixmanifest. ”
I updated all the dependencies and generator-code, but still reported the same error
problem solved! Edited extensions are divided into Visual Studio Code, Visual Studio and Azure Devops. When publishing my extension, I chose to publish the extension of Visual Studio, but my custom extension works on Visual Studio Code!!!
So the solution to the problem is obvious: choose the corresponding editor type when publishing the extension. Here I publish Visual Studio Code and choose her to publish.

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.

Workaround for "Visual Studio Web Request handler could not be found" when using github?

When I choose "Open in Visual Studio" on github, I get the following error:
"Visual Studio Web Request handler could not be found"
I believe this is due to the git-client protocol handler not being registered properly.
There's a closed bug for VS2015 listed here but no workaround: https://github.com/github/VisualStudio/issues/140
I've tried to repair Visual Studio 2017 but that didn't fix it.
Is there a workaround, perhaps by editing HKEY_CLASSES_ROOT\git-client entries?
The solution is easy: just reassign the default handler for the git-client protocol.
To do that, press the Windows-Key, enter "default apps" and select the settings page. Go down, select "Choose default apps by protocol" and look for "git-client". Click and select the Microsoft Visual Studio Web Protocol Handler Selector for VS2017.
When you click the "Open in Visual Studio" - button in Github, Visual Studio 2017 should open and you can clone the repo in Team Explorer.

how to add devices and Apache ripple to visual studio 2015

I cant see emulators and I also cant see Apache ripple in the debugging bar, all I see is start. even when I click start it shows error.
Check out this link:
Known Issues - Visual Studio 2015
In some cases, when you uninstall VS2013 or a previous version (RC) of VS2015, a library gets corrupted that causes the debug dropdown not to show all the target options. To resolve this issue:
Close all Visual Studio instances.
Browse "C:\Users\\AppData\Local\Microsoft\Phone Tools" folder
Rename the CoreCon folder to something else.
Launch Visual Studio again.