How to convert a „normal“ project to a DLinq (and probably Linq) enabled one?

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Trying to execute DLinq queries in your project and receiving errors like this one?



You have a normal project which you’ve been developing for a while and now you want to enable it to be able to execute DLinq queries in it?

It’s actually quite simple, you need to modify 3 sections of your project file (Right click the project file –> Unload project –> Edit project ……):

  • References
  • Imports
  • Targets

Basically the three mentioned sections need to have the following (this is an example from a DotNetNuke Linq enabled module I am building made with my BlankModule development environment implementation):




and:



as you can see I’ve commented out the normal Visual Basic targets and added the LINQ ones.

Actually if you just open one of the LINQ enabled projects from the template (unroll it) you will see these same sections, references and imports there.


Hope this helps someone.

Cheers!


Filed under: .NET, ASP.NET, Linq DLinq XLinq
Written on: 16 Jan 2007 ·

kick it on DotNetKicks.com

Leave a Reply