Search code examples
.net.net-6.0

How can I show the namespace in my .NET 6 console application?


I created a console application on .NET 6 and I can't show my namespace name anywhere.

I need to show my namespace. How can I show the namespace in my .NET 6 console application?


Solution

  • When creating project you should check "Do not use top-level statements".

    This

    results in:

    Result