簡體   English   中英

如何在Visual Studio 2015輸出窗口中阻止C#編譯器輸出?

[英]How do I stop the C# compiler output from wrapping in the Visual Studio 2015 output window?

當我使用默認編譯器在Visual Studio 2015中構建我的C#代碼時(項目沒什么異常),我在輸出窗口中得到輸出,看起來有點像這樣。 (實際寬度不具代表性,因為我用XXX替換了相當長的路徑。)

1>XXX(402,13,402,16): error CS1955: Non-invocable member 'Lo 1>g' cannot be used like a method. 1>XXX(424,25,424,28): error CS1955: Non-invocable member 'Lo 1>g' cannot be used like a method.

據推測,編譯器正在打印Non-invocable member 'Log' cannot be used like a method ,某些地方正在Non-invocable member 'Log' cannot be used like a method並彈出換行符(在實踐中的第120列 - 如上所述,我的示例輸出中的列計數不具有代表性) 。

我可以阻止這個嗎? 如果是這樣,怎么樣?

我更喜歡在自然位置使用換行符打印消息,因此我可以使用輸出窗口的自動換行功能。

打開包管理器控制台后,構建輸出開始變為如上所示。

修復似乎是重新啟動Visual Studio。

哇,我差點放棄找人問這個問題。 我可以確認所描述的行為並重新啟動VS修復它。 謝謝!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM