What does it mean when Rider says that setting the language level doesn't affect build?
When I try to implement a C# 7.2 feature, Rider gives the following option: Set C# language level to '7.2' for code analysis of this project (doesn't affect build). What does it mean that it doesn't affect build?
Please sign in to leave a comment.
Hello Sean,
This quick-fix changes language version in csproj file. In normal occasion csproj file automatically generated by Rider package in Unity and it is not meant to be edited in Rider. Rider autodetects LangVersion based on Roslyn bundled in the corresponding Unity installation. Language level for Unity projects it depends on Unity version and msbuild version in Rider settings. That it why it says it does not affect build. Let me know if you have other questions.