简体   繁体   中英

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

How to solve Markup element with unexpected name 'NavLink'

That problem I noticed today from where I don't know.

You likely have an out dated version of Visual Studio.

Please make sure you have:

  • Visual Studio Preview
  • Version 16.5.0 Preview 1.0
  • .NET Core 3.1 SDK.
  • Install the .NET Core 3.1 or later (Preview) SDK. (for WebAssembly projects)

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. I solved the thing by shutting VS down, deleting the .vs directory in the project directory, then restarting.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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