C
C#2y ago
gerksterr

❔ 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
Anton
Anton2y ago
idk I'd get an older compiler from the roslyn repo
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.