.NET Core 2.2,F#:无法解析“ FSharp.Core(> = 4.5.2)”

时间:2018-12-06 08:43:25

标签: f# .net-core windows-10

我在Windows 10上安装了当前版本的.NET Core 2.2

> dotnet --info
   .NET Core SDK (reflecting any global.json):
   Version:   2.2.100
   Commit:    b9f2fa0ca8
   ...

然后我尝试跟随 this F# tutorial。创建F#类库时,执行restore命令时出现以下错误:

> dotnet new classlib -lang F# -o src/Library
  The template "Class library" was created successfully.

  Processing post-creation actions...
  Running 'dotnet restore' on src/Library\Library.fsproj...
  Restoring packages for 
  ...\Library\Library.fsproj...
  ...Library\Library.fsproj : error NU1100: Unable to resolve 
  'FSharp.Core (>= 4.5.2)' for '.NETStandard,Version=v2.0'.

安装文件夹中的FSharp.Core.dll中有一个C:\Program Files\dotnet\sdk\2.2.100\FSharp。该错误的原因可能是什么?

0 个答案:

没有答案