C
C#14mo ago
kingend

Use language version 9.0or greater

how ı can fix feature top-level statments is not available in c# 7.3 Please Use language version 9.0or greater
9 Replies
Elianora
Elianora14mo ago
Are you using .NET Framework or .NET Core?
Monsieur Wholesome
That error indicates .NET Framework indeed
kingend
kingendOP14mo ago
yes
Monsieur Wholesome
Use .NET Core, and never touch .NET Framework again 😄
kingend
kingendOP14mo ago
why?
Monsieur Wholesome
.NET Framework is old and obsolete We're talking like half a decade old essentially (Ignoring the last version update that didnt make much better)
kingend
kingendOP14mo ago
ok..
Elianora
Elianora14mo ago
.NET Framework is the old and Windows-only version of the runtime if you're starting a new project, you should use .NET 8
kingend
kingendOP14mo ago
ok thanks for help

Did you find this page helpful?