繁体   English   中英

输出窗口在Visual Studio隔离Shell上不起作用

[英]Output Window not working on Visual Studio Isolated Shell

我在向Visual Studio隔离Shell中的输出窗口显示文本时遇到问题。如果我在安装了隔离+集成Shell Redistributable + Visual Studio Professional 2015 + SDK的计算机上运行隔离Shell,一切都可以正常工作。 在未安装Visual Studio的计算机上,“输出”窗口在“隔离”外壳上仍为空白,尽管在集成外壳上也可以使用。

我正在使用以下内容创建自定义输出窗口:

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();

有人可以照亮吗? 谢谢

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

可以在此链接中找到更多详细信息:

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM