Namespace or Runtime Module Undefined

So, the Funscript page has a sample here. Now I have uploaded the sample to my Visual Studio 2012. I am not familiar with Visual Studio.NET and only recently learned F #. Last line on sample pages:

do Runtime.Run(components=components, directory="Web") 

always gives an error. In fact, the Visual Studio IDE (compiler) cannot recognize the runtime.

If it were a language like Java, try importing the library, so I tried to use System.Runtime, but still the Visual Studio IDE does not recognize, and the line gives an error message:

 "The namespace or module "Runtime" is not defined. 

Two questions

  • How can I get around this?
  • Is there any link that teaches F # for a complete beginner that also includes downloading external libraries?
+7
f # funscript
source share
1 answer

I get it. Funscript requires a launch, which is mentioned in the documentation. It is contained in Examples/Shared/Launcher.fs . If you use .fsproj files that come with funscript, all of this is processed automatically.

If you compile manually, just add ../Shared/Launcher.fs before compiling your own file.

+9
source share

All Articles