如何修复 VS Code Intellisense 无法识别 Blazor Webassemble?

问题描述 投票:0回答:1

VSCode 无法识别 Blazor 组件,并会抛出“发现具有意外名称 '' 的标记元素”警告,并且无法识别 IEnumerable 等简单类型。该项目构建和编译没有任何问题。

我尝试制作一个新的 Blazor WebAssembly 项目,但问题仍然存在。我还尝试重新安装 VSCode、SDK 和运行时,并确保所有 using 语句和包定义都是正确的。

c# .net visual-studio-code blazor intellisense
1个回答
0
投票

如果您使用的是 C# 扩展版本 2,只需将其降级到 v1.26.0。

更新后我也遇到了同样的问题。 https://github.com/dotnet/vscode-csharp/issues/4580

© www.soinside.com 2019 - 2024. All rights reserved.