I have setup the basic application in Blazor in Microsoft Visual Studio Community 2019 Version 16.1.3 and I have tried both of the versions of .NET Core SDK 3.0.100-preview5
The error I got (using Visual Studio 2019 v16.8.2 & .NET 5 in a Blazor Server App) was pointing to the "App" part of the line above (in the file _Host.cshtml). This happened after copying in some code from another project, and encountering issues with a different (application) namespace, I got this error (and no others) when trying to build. @SᴇM's answer helped me solve the problem - I closed and re-opened my solution, and then got namespace errors when building - which I could resolve... after fixing that it worked.
I would have commented to @SᴇM's solution, but I don't have enough 'reputation'.