✅ Console.WriteLine Broken
For some reason my program stopped logging to console, i rolled the code back to the very basics (hello world) and it still won't.
My csproj doesn't contain any thing special either.
It's not about the VS debug window and i double checked in a "normal" power shell outside of VS Code, just in case.

14 Replies
Console.Error.WriteLine(""); is affected as wellwhat's inside Problems
by default, in csproj, the
OutputType is ExeBreaking change: OutputType set to WinExe for WPF and WinForms apps...
Learn about the breaking change in .NET SDK 5.0.100 where OutputType is automatically set to WinExe for Windows Forms apps.
nothing anymore
I can reproduce the problem with
winexe but not with WinExe or Exe , edit: Exe works for meik, wenn it worked i used a windows specifc device Driver
is this a winforms / wpf project?
no just console
then just use
Exe ?it works again with exe, but then the driver throws "Unsupported Platform Exception"
ok, so there's another problem
what driver is this
not currently, but "Hello World" isn't then program i want to end with.
unfortunately a confidential one, but from the hardware manufactuer, i can't change it.
it'll be a bit hard to help
so i suppose the workaround would be to use the console in a different way
IK, but that's not really a priority when classifying IP 🤷 😔