markjprice / cs12dotnet8

Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
564 stars 164 forks source link

there is no the check box labeled "Do not use top-level statements" in Microsoft Visual Studio Enterprise 2022 #18

Closed andremayers closed 7 months ago

andremayers commented 7 months ago

I will appreciate an alternative, a quick one if possible. Otherwise, i enjoy the book until now

markjprice commented 7 months ago

Please tell me which page you are on, what section title you are in, and what step number you are trying to complete. Please also include a screenshot showing the missing check box. The reason is that the check box labeled "Do not use top-level statements" is context dependent i.e. it may or may not appear based on factors like what project type you are using. For example, a console app targetting .NET 8 has it: image But a console app targetting .NET 5 does not have it: image And a class library targetting .NET 8 dot not have it: image

So just saying "there is no the check box labeled "Do not use top-level statements" in Microsoft Visual Studio Enterprise 2022" makes no sense.

andremayers commented 7 months ago

I am sorry. It was very clear in the book "Do NOT navigate to File | New | Project…". But I did it.