I've developed a server software for .net 3.5 which I tried to convert to a windows service application. So I created a new Windows service project and added all my classes. But I can't compile it because it doesn't understand the lambda expressions i've used. I've checked so that all references are imported. But it seems like it isn't possible to change the target framework in a windows service project and I suspect that it's the problem.
A:
Check your references. Sounds like you are missing a required type. If you post the entire compiler error and maybe some sample code we could probably provide more insight.
Matthew Whited
2009-10-30 13:50:11
A:
If you try to use the LINQ extension methods but you don't import System.Linq it won't compile. Try:
using System.Linq;
Marcel Gosselin
2009-10-30 14:24:35