I am using Visual studio 2005. Why is this line not supported?

using System.Linq;     

Error:

Error 1 Validation (XHTML 1.0 Transitional): Attribute values must be enclosed in quotation marks.

Error 2 The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)

有帮助吗?

解决方案

LINQ is not supported until .NET Framework v3.5, and visual studio 2005 supports .net v2.0 at max.

There are some workaround to use LINQ with .NET 2.0 but you will still need Visual Studio 2008 minimum!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top