This is a quick one in between sips of geisha coffee (so good). 

Prereqs:

  • Blazor Server app
  • Using scaffolding - in my case, Identity
  • Already have a handful of pages/components

If you've got all that going on, and you try to add an additional scaffolded item to build out your own UI (forgot password, for example) - the scaffolding system super really wants your various pages and components to inherit from ComponentBase. 

A lot of the time, you just don't have to. You build, you run, it works - no questions asked. However, the scaffolding system really requires you to ensure all of your components and pages inherit - explicity - from that class.

Now, I could dig in and figure out why neither VS nor Resharper (one of my favs) cares that I regularly omit this "inherits". But I now know, better just drop it in. 

And now you know too. 

Back to the geisha (coffee, that is). 

You can get that and other coffees here.

Comments


Comments are closed