R#4 is showing wrong view actions list for project

I have a .NET 2.0 solution inside VS2008 using the 4.0.812.25 EAP build. When I go through the .NET 2.0 project, I receive invalid view actions such as:

Use 'var'

I know that var is a new C# 3.0 keyword which isn't compatible with .NET 2.0, which tells me R#4 is confused as to what action list items should be active. Why doesn't R# realize the project I am editing is targeted to .NET 2.0 instead of assuming it is .NET 3.5? Also, is there a quick way to change what R# is targeting manually?

Thank you

2 comments
Comment actions Permalink

Nevermind,

I just found this , learning that some C# 3.0 features work with .NET 2.0 while some don't. Does ReSharper know of these differences?


Thanks again,
Michael

0
Comment actions Permalink

Hello,

I just found
[this|http://www.danielmoth.com/Blog/2007/05/using-c-30-from-net-20.ht
ml] , learning that some C# 3.0 features work with .NET 2.0 while some
don't. Does ReSharper know of these differences?


All of them do work, as far as I know. ReSharper itself is a proof to the
rule, as it's written in C#3 but built into .NET Framework 2.0 compatible
assemblies so that to run under VS 2005 seamlessly.

Concerning the above post — yes, we use extension methods and LINQ too.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.