MavUK

I've just installed the may linq download, but I have an issue trying to use it.

The IDE picks everything up OK, intellisense works fine.

But when I try to comile I get errors all over the place, except for in downloaded examples where I use the project file for the download.

I've figured out where the issue lies:

<Import Project="$(ProgramFiles)\LINQ Preview\Misc\Linq.targets" />

The above had to be included in the csproj file for the compiler to work, what I can't figure out is why, or how to get the imports into the project file without manually hacking it in there.

Sorry is these are dumb Q's :)

TIA,

Stu



Re: LINQ Project General Issues with Linq in VS2005 SP1

Fabrice MARGUERIE

The line you mention replaces the compilers by the new ones, which is required for LINQ support.
You have to add it manually for existing projects, but for new projects you can use the provided project templates for Visual Studio 2005. See the "Visual C# / LINQ Preview" or "Visual Basic / LINQ" folders in the "New Project" dialog.





Re: LINQ Project General Issues with Linq in VS2005 SP1

MavUK

Ahh, found it.

Thanks for that, knew it was going to be a simple solution to a daft question...

Stu