© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
Indeed

❔ .net cli use file-scoped namespace

Hi!
Is there a way for the dotnet cli to use file-scoped namespaces? I have .net 7 + c# 11 project but it does not do that sadly
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ Roslyn: Get file scoped namespace
C#CC# / help
2y ago
✅ Namespace?
C#CC# / help
3y ago
✅ namespace does not correspond to file location
C#CC# / help
7mo ago
✅ ASP.NET Core DI: DbContext Not Shared in Scoped Services
C#CC# / help
7mo ago