DLINQ samples won't compile?

  • Thread starter Thread starter Brett Romero
  • Start date Start date
B

Brett Romero

I've downloaded the DLINQ samples from Microsoft and have always been
able to compile these in VS.NET 2005 Pro. I have a new project that I
added DLINQ references to and put in a simlpe query. It didn't
compile. I went back to the SampleQueries.sln, compiled and for the
first time it failed. It keeps looking at the query code as if it were
regular c#. It's wanting ";", which the queries don't use. Same thing
is occuring in my other project.

Has any one run into this and know what the fix is?

Thanks,
Brett
 
I thought DLINQ was only avaliable in the Beta 2 Versions of Visual Studio
2005 if you downloaded a prototype compiler? I don't think the prototype
compiler works for the released versions of VS2005.

You should be able to download the "Orcas" LINQ CTP at:

http://msdn.microsoft.com/data/ref/linq/

DLINQ is a feature that will be avaliable in the next version of C# and VB.
 
| I've downloaded the DLINQ samples from Microsoft and have always been
| able to compile these in VS.NET 2005 Pro. I have a new project that I
| added DLINQ references to and put in a simlpe query. It didn't
| compile. I went back to the SampleQueries.sln, compiled and for the
| first time it failed. It keeps looking at the query code as if it were
| regular c#. It's wanting ";", which the queries don't use. Same thing
| is occuring in my other project.
|
| Has any one run into this and know what the fix is?
|
| Thanks,
| Brett
|

Did you read the:
IDE Support (for Visual Studio 2005/C# 2005 Express)
chapter in the "readme for C#.htm"?

Willy.
 
Why than does their example compile in VS.NET 2005 release but when I
do my own it doesn't compile. Seems to be fine in the release of
VS.NET. I'm probably missing a file or reference.

Brett
 
You need to use the Linq project type. This sets the project to use the new
compiler, otherwise your still using the old compiler which does not know
Linq. I think you can force a normal project to point to the new compiler,
but I lost interest in that method and never got that far.

--
William Stacey [MVP]

| Why than does their example compile in VS.NET 2005 release but when I
| do my own it doesn't compile. Seems to be fine in the release of
| VS.NET. I'm probably missing a file or reference.
|
| Brett
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top