[英]Visual Studio Code not showing suggestions
I'm following a Blazor tutorial in Visual Studio Code.我正在关注 Visual Studio Code 中的 Blazor 教程。 However I don't get VS Code suggestions such as missing assemblies (when my context file inherits from
DbContext
of Entity Framework Core) or if I have a public interface, I don't get the "Implement interface" option.但是,我没有收到 VS Code 建议,例如缺少程序集(当我的上下文文件继承自 Entity Framework Core 的
DbContext
时),或者如果我有一个公共接口,我没有得到“实现接口”选项。 The bulb does not showing up in any place, so I have to write all the code manually.灯泡没有出现在任何地方,所以我必须手动编写所有代码。
I tried to uninstall and reinstall VS Code, deleting the preferences folder first.我尝试卸载并重新安装 VS Code,首先删除首选项文件夹。 Also, restarting Omnisharp but nothing do the trick.
此外,重新启动 Omnisharp 但无济于事。 My sln file is recognized, however.
但是,我的 sln 文件已被识别。
Environment:环境:
Extensions:扩展:
Any suggestions?有什么建议么? Or is it better to go back to Visual Studio?
还是将 go 返回 Visual Studio 更好?
You can try to reinstall the Nuget package with the NugetGallery extension.您可以尝试使用 NugetGallery 扩展重新安装 Nuget package。 If it has not worked try to type
dotnet restore
in Command Prompt at the project directory.如果它不起作用,请尝试在项目目录的命令提示符中键入
dotnet restore
。 Checking the dependencies of the project may resolve the problem.检查项目的依赖关系可能会解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.