Gotchas

Published on Saturday, December 30, 2023

Gotchas

Every now and then, Blazor does something unexpected.

Razor file can�t find methods in the code-behind file? Make sure that the namespace of the code-behind file matches its location in the file tree. This can easily happen when you move or copy/paste components.