1
我創建一個自定義輸出窗玻璃我VSPackage
Visual Studio的輸出窗口:激活使用DTE
使用此代碼:
// Creating Output Window for our package.
IVsOutputWindow output = GetService(typeof(SVsOutputWindow)) as IVsOutputWindow;
Guid guildGeneral = Microsoft.VisualStudio.VSConstants.OutputWindowPaneGuid.GeneralPane_guid;
int hr = output.CreatePane(guildGeneral, "Codex", 1, 0);
hr = output.GetPane(guildGeneral, out ApplicationConstants.pane);
ApplicationConstants.pane.Activate();
問題
如何選擇輸出選項卡當前選擇了其他選項卡?
的GetService不工作如何參考呢? –
@UsRGk將'Microsoft.VisualStudio.Shell'添加到您的參考。請參閱此處:https://msdn.microsoft.com/en-us/library/bb138962.aspx –
此鏈接:https://msdn.microsoft.com/en-us/library/bb166401.aspx –