C#8 for Unity

C#8 is now out in Unity 2020.2a12. but Rider doesn't seem to be picking up on it. Do I need to enable a setting somewhere?

4 comments
Comment actions Permalink

Hello,

If you open your Unity project in Rider, then in Explorer change Unity view to Solution one, right-click on project and click Properties you can select preferred version of the C# and enable Nullable reference types. Please let me know if that helps.

0
Comment actions Permalink

Clem Girault is this still an issue for you? If it is, could you please report a bug in Rider with Help->Report a Bug?
Last fix was done already some time ago https://github.com/JetBrains/resharper-unity/pull/1640.

0
Comment actions Permalink

Olga's solution does not work with Unity projects, Unity will recreate the .csproj files after any code changes are made.

0
Comment actions Permalink

For Unity it depends on Unity version and msbuild version in Rider settings.

0

Please sign in to leave a comment.