Resharper incorrectly suggests Roslyn (c# 6) changes

Using VS2013 with Resharper 9.1.1 and a Silverlight 5 project, Resharper is suggesting c# 6 features such as "use null propogation" which will not compile in this scenario.  How do I turn off c#6 features or is this a bug with Silverlight projects?

4 comments
Comment actions Permalink

Have you tried the "C# Language Level" in the project's properties window?

0
Comment actions Permalink

Hi,  I am guessing this is from Project Properties->Build->Advanced ?  In there I have default, c#6 is not an option, the latest is c#5.  I tried changing from default to c#5 and the c#6 suggestions remain, do I need to restart for Resharper to pick up that change?

0
Comment actions Permalink

In VS2013, it's in the properties window for the project (F4). I don't have VS2015, but I can't imagine they've moved it.

0
Comment actions Permalink

Its set to Experimental.  Looking at the version history I see that this is stored in a .DotSettings file.  It was added as an element to the xml in that file recently, no idea why.  I've deleted it and that has cured things.   Thanks for pointing me in the right direction.

0

Please sign in to leave a comment.