Skip to content

Testing and Debugging

samatrhea edited this page Mar 22, 2024 · 4 revisions

Inside Visual Studio, it is recommended to enable the Script Debugging feature and to use Google Chrome as browser.

For integration tests, you should have the application running locally, listening on port 5136.

RZ10012 warning and MSBuild 17.6

A strange behavior appears since MSBuild version 17.6. It can happen that, even by declaring @using statement, a warning RZ10012 appears.

If a Razor component is created and that some other component inherits from it, the base component should explicitly inherits the same class in the CS partial class.

Example:

  • Create a component A
  • Create a component B, that inherits from A
  • Use component B somewhere and Build: warning RZ10012: Found markup element with unexpected name 'B'. If this is intended to be a component, add a @using directive for its namespace.
  • Create a partial class A, that inherits from ComponentBase
  • Build: no more RZ10012 warning