我在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
。该错误的原因可能是什么?