Rider and C# 7?
Answered
Does Rider support C# 7 yet? I seem to see warnings and options for version 7 of the language but I can't seem to get things configured to actually compile and run an application using it.
Please sign in to leave a comment.
C# 7 support requires MsBuild toolset 15 installed. As far as know it can be installed with VS2017RC.
If you have it and it is selected in Rider->Settings ->Toolset then it should work.
One smaller thing that I have found now is that Rider doesn't respect <LangVersion>7</LangVersion> in csproj file and I have reopened the requiest https://youtrack.jetbrains.com/issue/RIDER-2458 with new comment.
But this issue will not prevent you from using C#7 in Rider.
Try to change Toolset in Rider File->Settings
Thank you - had done that but when I try to use 7.0 features I get this error (On macOS)
./RiderProjects/EmptyProject/EmptyProject/EmptyProject.csproj
Error:CS1617: CSC : error CS1617: Invalid -langversion option `7'. It must be `ISO-1', `ISO-2', Default or value in range 1 to 6
Are you on Windows with VS2017RC installed?
I am on macOS (10.12.1)
Unfortunately for now it is not possible on mac/linux, but it is planned - around Q1 2017.