I have an application, call it App1. It is mostly C#. I’m writing a dll in F#. It cointains a class, Class1. I want this class to belong to the App1 namespace.
If I add namespace App1 on the top of my .fs file, it complains that a namespace cannot contain values (I have some lets in my file).
If I add “module App1” under the namespace, it compiles, but I cannot access the namespace from outside. Any help?
Thanks
It’s simplest to separate out the class code from the freestanding functions — I’d do something like
and pull the free-standing functions in from a separate module