【发布时间】:2016-11-08 08:49:57
【问题描述】:
我在 Visual Studio 隔离外壳中向输出窗口显示文本时遇到问题。如果我在安装了隔离+集成外壳可再发行组件 + Visual Studio Professional 2015 + SDK 的机器上运行隔离外壳,一切正常。在没有安装 Visual Studio 的机器上,虽然在 Integrated Shell 上可以工作,但在独立 shell 上的输出窗口仍然是空白的。
我正在使用以下内容来创建自定义输出窗口:
IVsOutputWindow opWindow = Package.GetGlobalService( typeof( SVsOutputWindow ) ) as IVsOutputWindow;
Guid customGuid = new Guid("0F44E2D1-F5FA-4d2d-AB30-22BE8ECD9789");
string customTitle = "My Title";
opWindow.CreatePane( ref customGuid, customTitle, 1, 1 );
IVsOutputWindowPane opPane;
opWindow.GetPane( ref customGuid, out opPane);
opPane.OutputString( "Hello, This is a test!" );
opPane.Activate();
有人能解释一下吗? 谢谢
【问题讨论】:
标签: c# visual-studio shell vsix