I have a Powershell
script. I have successfully downloaded the assembly C#
and use of the method contained in one of the classes in this build: [MyCSharpAssembly.MyClass]::MyAssemblyMethod()
. However, the same does not work for F#
.
Is it possible?
I have an assembly called Data.dll
and it has a module with a name People.fs
and People.fs
defines the types of records:
module People =
type Teacher = {
FirstName:string,
LastName:string,
Age:int }
I want to load the assembly Data.dll
into my Powershell
script and then create an expression of a Teacher type inside the script to use it in some other calculations in this script.
How to do it, if it can be done?
source
share