问题描述
安装一个软件包后,OmniSharp 给了我这个:
[fail]: OmniSharp.MSBuild.ProjectLoader
Package Microsoft.AspNetCore.Identity.EntityFrameworkCore 5.0.8 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.AspNetCore.Identity.EntityFrameworkCore 5.0.8 supports:
- net5.0 (.NETCoreApp,Version=v5.0)
- netstandard2.1 (.NETStandard,Version=v2.1)
接着是很多警告,例如:
[warn]: OmniSharp.MSBuild.ProjectManager
Expected project reference '..' to be already loaded for project API
突然间我的项目中有 58 个错误:
The type or namespace name 'Entities' Could not be found (are you missing a using directive or an assembly reference?) [API]
我尝试删除包,在 settings.json 中添加了 "omnisharp.path": "latest"
,并尝试删除 Nuget 的缓存:dotnet nuget locals all --clear
。
这些都没有帮助。我需要做什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)