简体   繁体   English

我从哪里以及如何解决 Blazor 中意外名称的问题

[英]From where and how can I solve problem with unexpected name in Blazor

How to solve Markup element with unexpected name 'NavLink'如何解决具有意外名称“NavLink”的标记元素

That problem I noticed today from where I don't know.我今天从我不知道的地方注意到的那个问题。

You likely have an out dated version of Visual Studio.您可能有一个过时的 Visual Studio 版本。

Please make sure you have:请确保您有:

  • Visual Studio Preview Visual Studio预览版
  • Version 16.5.0 Preview 1.0版本 16.5.0 预览版 1.0
  • .NET Core 3.1 SDK. .NET 核心 3.1 SDK。
  • Install the .NET Core 3.1 or later (Preview) SDK.安装 .NET Core 3.1 或更高版本(预览版)SDK。 (for WebAssembly projects) (对于 WebAssembly 项目)

https://docs.microsoft.com/en-us/aspnet/core/blazor/get-started?view=aspnetcore-3.1&tabs=visual-studio https://docs.microsoft.com/en-us/aspnet/core/blazor/get-started?view=aspnetcore-3.1&tabs=visual-studio

The same problem happened to me.同样的问题发生在我身上。 There was this error, but the project could be generated and displayed through IIS Express.有这个错误,但是项目可以通过IIS Express生成和显示。 I solved the thing by shutting VS down, deleting the .vs directory in the project directory, then restarting.我通过关闭 VS,删除项目目录中的 .vs 目录,然后重新启动来解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM