简体   繁体   English

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

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

I am having problem displaying text to the Output Window in Visual Studio Isolated Shell.Everything is working fine if I run the Isolated shell on a machine that has Isolated+Integrated Shell Redistributable + Visual Studio Professional 2015 + SDK installed. 我在向Visual Studio隔离Shell中的输出窗口显示文本时遇到问题。如果我在安装了隔离+集成Shell Redistributable + Visual Studio Professional 2015 + SDK的计算机上运行隔离Shell,一切都可以正常工作。 On a machine that doesn't have Visual Studio installed, the Output Window remains blank on the Isolated shell although it does work on the Integrated Shell. 在未安装Visual Studio的计算机上,“输出”窗口在“隔离”外壳上仍为空白,尽管在集成外壳上也可以使用。

I am using the following to create a custom Output Window: 我正在使用以下内容创建自定义输出窗口:

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

Can someone shed some light? 有人可以照亮吗? Thanks 谢谢

I've found the problem. 我发现了问题。 In the end it was due to DLLs version different that caused the behaviour differences. 最后,是由于DLL版本不同导致行为不同。

More details can be found in this link: 可以在此链接中找到更多详细信息:

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

Hope the above helps someone. 希望以上内容对某人有所帮助。

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

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