After generating a project i .NET7 CLI, I got an error in Jetbrains Rider "Feature 'file-scoped namespaces' is not available. Please use language version 10.0 or greater.
I tried to change the language version, but in project properties, I haven't an option of 10.0. I've upgraded Rider to 2023.2.2 build #RD-232.9921.83, Sep 24, 2023 - which is currently the highest release version of Rider IDE - but the problem still persists.
Adding
in .csproj file has solved the problem.