How do I set the global default C# language level?

I have Resharper installed with Visual Studio 2015. The default language level is C# 6.  However, I have many projects that are shared with other devs running Visual Studio 2012.  That means that I need to restrict the C# level to 5.0

 

How can I do that at the global (machine) level?  I don't want to have to change this for every solution I work on.

0
1 comment

Hello Gerald!

 

Thank you for contacting us.

Please add the following string  in %AppData%\JetBrains\Shared\vAny\GlobalSettingsStorage.DotSettings file:

<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp50</s:String>

Thank you.

2

Please sign in to leave a comment.