DTE dte = (DTE)GetService(typeof(DTE));
dte.ItemOperations.Navigate("http://www.google.fr",
vsNavigateOptions.vsNavigateOptionsDefault);
How do I open the web browser window from a VS extension?
-
11-03-2022 - |
Frage
When the user opens a solution in Visual Studio, I'd like to open the web browser window, pointing at a particular page.
In my extension, I've successfully hooked the OnAfterOpenSolution
event, and now I'd like to open the web browser window.
How do I do that?
(Note that I'm not referring to the user's default browser; I mean the browser window integrated in VS)
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow