【问题标题】:Output Window not working on Visual Studio Isolated Shell输出窗口在 Visual Studio 隔离外壳上不起作用
【发布时间】: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


    【解决方案1】:

    我发现了问题。最后是由于DLL版本不同导致了行为差异。

    更多细节可以在这个链接中找到:

    https://social.msdn.microsoft.com/Forums/en-US/vsx/thread/528e150d-99f6-4e14-801f-ff7a73d95235/#528e150d-99f6-4e14-801f-ff7a73d95235

    希望以上内容对某人有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-09-06
      • 2016-04-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多