title: "Found markup element with unexpected name" -- what to do after renaming Blazor web client?
body: <p>I had perfectly well working blazor app (like in demo -- shared project, server project and client one). I needed to move entire solution and also rename the projects. As the effect I have strange errors in web client:</p>
  <blockquote>
  <p>App.razor: warning RZ10012: Found markup element with unexpected name 'RedirectToLogin'. If this is intended to be a component, add a @using directive for its namespace.</p>
  </blockquote>
  <blockquote>
  <p>Index.razor: warning RZ10012: Found markup element with unexpected name 'SurveyPrompt'. If this is intended to be a component, add a @using directive for its namespace.</p>
  </blockquote>
  <blockquote>
  <p>App.razor: error CS0246: The type or namespace name 'MainLayout' could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  <blockquote>
  <p>App.razor.g.cs: error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type</p>
  </blockquote>
  <blockquote>
  <p>App.razor: error CS0246: The type or namespace name 'MainLayout' could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  <p>Of course &quot;MainLayout&quot; is present, same story with &quot;SurveyPrompt&quot;. I deleted entire &quot;bin&quot; directory, &quot;obj&quot;, &quot;.vs&quot;, restarted VS and build the solution again, same outcome.</p>
  <p>One thing which confuses me even more is &quot;RedirectToLogin&quot; for example is a component. I have my own component, used on several of pages, and yet there is no warning about it, so it is seen. Why then &quot;RedirectToLogin&quot; is not?</p>
  <p><em>The error coming from compiled razor file I guess is safe to ignore for a moment, because it can be caused by previous errors and warnings.</em></p>
  <p>For the record, I have to rename the projects, so I cannot solve this by reverting all the name changes.</p>