When creating a console application project for .net 6.0 c# in visual studio, it generates the following code:
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
As opposed to previous c# versions, where the project template created some useful boilerplate, non of this is helpful whatsoever.
Is it possible to configure visual studio 2022 so that when creating console applications for c# in .net 6.0 the file will be completely empty?
Apparently, when creating a new solution, one has to select the "Do not use top-level statements" checkbox when selecting the .Net version, on the last step of the solution creation. Not exactly by default, but at least there is that option.
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