Also, 400th thread, I win!

By on 4/7/2008 3:06 PM ()

If it's 400th thread then I'll have to join (though I don't see the number anywhere ...).
Anyway, to reference classes from the .NET 3.5, you just need to add reference to additional .NET 3.5 libraries (both 3.0 and 3.5 just add assemblies to the standard 2.0, so you don't need to change the "target framework" - it is still 2.0 with additional assemblies).

The assembly that contains Func delegate is following:
C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll

So, I would do the following in the code (or use appropriate command line switches to reference it):

1
2
#I @"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\"
#r "System.Core.dll"
By on 4/7/2008 3:26 PM ()

The thread count is listed on the forum index. [:)]

You'd think I would have just tried referencing the DLL, but I didn't even think of that. Thanks for the help.

By on 4/7/2008 3:47 PM ()

In addition to Tomas comments you can also use the compiler switch -I and -r which are both the same at the end

fsc -I \"c:\\Program Files\\Reference Assemblies\\Microsoft\\Framewor<WBR>k\\v3.5\" -r System.Core.dll -r System.Data.dll -r System.Xml.Linq.dll -r System.Data.Linq.dll

By on 4/8/2008 1:49 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper