Just switched to VS2022, created new project and see this:
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
Where is all other stuff? Why is that by default now?
There is an option now, to disable top-level statements
:
I just tried it and it produces an old-style project. :-)
You also don't loose file-scoped namespaces
, they still work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With