简体   繁体   中英

visual studio 2017 community doesnt allow Console.WriteLine()

thanks to

Console.WriteLine does not output to Output Window in VS 2017

I have read that VS 2017 ( Community ) does not have "Hosting Process" removing the ability to use Console.WriteLine("");

However, I have also read from the developer community that this issue has been resolved in an update.

https://developercommunity.visualstudio.com/content/problem/46776/c-consolewriteline-no-longer-outs-to-vs-output-win.html

I have just downloaded the latest version 'March 05, 2019 -- Visual Studio 2017 version 15.9.8 Servicing Update' and this is still happening.

Does anyone know a way to fix this or should I just revert back to VS 2015.

Thanks

I don't think so I used VS2017 and still using it just make sure that you have used System namespace

using System;

or use

System.Console.WriteLine("Hello, World!");

Visual Studio can't disable or enable Console.WriteLine because it's a something of compiler's staff, not Visual Studio's stuff or, to be clear, it's one of .NET libraries.

See: System Namespace

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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