F#, VSCode and OSX: The namespace or module 'Expecto' is not defined

797 Views Asked by At

I am attempting to get started with F Sharp.

I have mono installed via brew and dotnetcore installed via d/l.

I have VS Code and the ionide plugin installed.

I have done the following steps:

  • project > new > expecto
  • paket install
  • fake build
  • expecto run

Install appears to occur with no errors. Build directory is empty after the fake build task. Expecto run does ... nothing.

When I open the generated Main.fs file, the editor tells me:

The namespace or module 'Expecto' is not defined

Is there something I am missing?

1

There are 1 best solutions below

0
On BEST ANSWER

For future reference the fix if you are staying with the Ionide generated defaults is to make sure your target framework is set to .net core and not .net framework

<TargetFramework>netcoreapp2.0</TargetFramework>