F# Giraffe和AspNetCore.Identity:打开二进制文件时出错

F# Giraffe和AspNetCore.Identity:打开二进制文件时出错,f#,f#-giraffe,F#,F# Giraffe,虽然我的项目启动并运行良好,但在VisualStudio代码中,它不断声明我的模块调用有错误 文件看起来像 module GTest.App 但我得到一个错误,它是这样的: Error opening binary file 'C:\Users\emoore\.nuget\packages\microsoft.aspnetcore.identity.ui\2.1.11\lib\netstandard2.0\Microsoft.AspNetCore.Identity.UI.dll': A pos

虽然我的项目启动并运行良好,但在VisualStudio代码中,它不断声明我的模块调用有错误

文件看起来像

module GTest.App
但我得到一个错误,它是这样的:

Error opening binary file 'C:\Users\emoore\.nuget\packages\microsoft.aspnetcore.identity.ui\2.1.11\lib\netstandard2.0\Microsoft.AspNetCore.Identity.UI.dll': A positive number is required.
Parameter name: capacity //F# Compiler(229)

有人知道是什么导致了这个问题吗?它并没有阻止我的发展,但它非常烦人。

我也遇到了同样的问题,并通过

  • 更新至最新的dotnet core 3.1 sdk
  • 正在将Giraffe更新至最新版本
  • 请确保更新fsproj文件,因为您不再需要引用Microsoft.AspNetCore软件包
  • 希望这有帮助。不幸的是,我现在正在处理与NSwag类似的问题