简体   繁体   中英

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

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?

供将来参考,如果您使用Ionide生成的默认值,则解决方法是确保目标框架设置为.net core而不是.net framework

<TargetFramework>netcoreapp2.0</TargetFramework>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM