❔ Compile Project With Legacy C# 7 Preview (from 2016) Features
Hey guys I have an old project that extensively uses C# 7 Preview features from 2016. Anyone knows a straightforward way to compile a project with that feature set? No matter what version I set from those defined in https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version because the match keyword got cut / altered after the preview version so none of the options will compile the project without extensive modifications to the code.
C# language versioning - C# Guide
Learn about how the C# language version is determined based on your project and the reasons behind that choice. Learn how to override the default manually.
2 Replies