문제

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