Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReSharper giving C# 3.0 Code Inspection Warnings to .NET 2.0 Projects

When I am working in .NET 2.0 projects with the newest version of ReSharper (4.1) I am getting warnings about using the var keyword and lambadas etc.. Any idea how I can disable this only for .NET 2.0 projects?

like image 664
Greg Avatar asked Sep 19 '08 19:09

Greg


1 Answers

Indeed, you can use C# 3.0 compiler features when targeting .NET 2.0, except extension methods and default LINQ implementations, which are located in newer assemblies. But if you need to co-operate with VS2005 users, you can open Properties view for a given project (not Project Properties, but Edit \ Properties Window, or F4) and select desired language level.

like image 155
Ilya Ryzhenkov Avatar answered Oct 10 '22 04:10

Ilya Ryzhenkov