質問

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)

役に立ちましたか?

解決

DTE dte = (DTE)GetService(typeof(DTE));
dte.ItemOperations.Navigate("http://www.google.fr",
     vsNavigateOptions.vsNavigateOptionsDefault);
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top