It sounds like you need to add the C# dll corresponding to "Cs" and its directory to the F# project property page. Click Project->Properties while in the F# project and add the path of the directory containing the dll and the name of the dll to the field labeled "DLL references, paths, and other flags", as follows (assuming it is on drive C; replace "Path to dll" with the actual path [in quotes] and the dll name with the actual name of the Dll [no quotes]):

1
-I "C:\PathToCsDll" -r Cs.dll

You will need to do this for all assemblies referenced by the F# project (if they haven't already been added automatically by VS).

Hope this helps!

Fred

By on 6/5/2008 5:09 PM ()

Thank you very much, this helps. But now I have a syntax erro on the 'type' keyword:

1
2
3
4
5
6
7
8
9
10
#light

open Cs;

module Fs
type Fs<'a> =
  class 
   interface Cs.IMyList
   ...
  end

Please help!!!

By on 6/6/2008 3:55 PM ()

A few points:

- No semicolons!

- the "module" statement needs an equals sign ("="), or there is an indentation problem. Try this (I hope the indentation comes through correctly...)

module FS =
type Fs...

By on 6/6/2008 4:56 PM ()
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