[英]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:请确保您有:
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.