问题 I have downloaded and installed v5.0.0-preview.5 . My project is targeting net5.0 but C# 9.0 is not working. How can I enable C# 9.0 ? 回答1: According to this page in the documentation you need to edit your *.csproj to set the <LangVersion> to preview . Also mentioned in the blog-post about the preview-release, but not the above documentation page, is that you need to update your project's targetFramework property too to net5.0 (this is because the C# design team decided to restrict entire C#