簡體   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