Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code “固定为”;“未注册软件包管理器密钥包”;in build.fsx_Visual Studio Code_F#_F# Fake_Ionide - Fatal编程技术网

Visual studio code “固定为”;“未注册软件包管理器密钥包”;in build.fsx

Visual studio code “固定为”;“未注册软件包管理器密钥包”;in build.fsx,visual-studio-code,f#,f#-fake,ionide,Visual Studio Code,F#,F# Fake,Ionide,当我在Visual Studio代码中打开假构建脚本时,如下所示: > dotnet new -i fake-template > dotnet new fake > dotnet tool update fake-cli > code build.fsx 我在编辑器中看到此错误消息,未定义任何假名称空间、模块或类型: Package manager key 'paket' was not registered in c:\Users\wallace.kelly\.vs

当我在Visual Studio代码中打开假构建脚本时,如下所示:

> dotnet new -i fake-template
> dotnet new fake
> dotnet tool update fake-cli
> code build.fsx
我在编辑器中看到此错误消息,未定义任何假名称空间、模块或类型:

Package manager key 'paket' was not registered in
c:\Users\wallace.kelly\.vscode\extensions\ionide.ionide-fsharp-5.4.0\bin\
Currently registered: nuget
如何更正此错误

运行
dotnet伪构建
工作正常。错误就出现在编辑器中


我的设置文件中有
“FSharp.dotNetRoot”:“C:\\Program Files\\dotnet\\sdk”
。该文件夹包括文件夹2.1.701 2.2.4013.1.407 5.0.103和5.0.104。

此处是Ionide for VS代码的维护者。从现在起,这种错误就要发生了。FAKE在其版本的FSharp.Compiler.Services中落后,并且没有对该组件的更新,我们与FAKE的集成已经萎缩到编辑器在该脚本中显示错误的程度

有几种解决方案:

  • 继续使用FAKE,只处理编辑问题
  • 停止使用FAKE作为脚本运行程序,但继续使用生成项目或“标准”fsx脚本中的假库
  • 使用某种类型的另一个构建系统
  • 将更新贡献给FAKE(并扩展Ionide中不推荐使用的代码)
等等