C# 10 gave us file-scoped namespaces. So this:
using Foo;
using Bar;
namespace Baz {
// ...
}
can be written as:
using Foo;
using Bar;
namespace Baz;
// ...
There are differences between usings before and after a namespace. Does the compiler automatically reorder that to:
namespace Baz;
using Foo;
using Bar;
// ...
If not, is there a dotnet build
or msbuild
CLI switch, code analyzer or some other option to enable such a thing?