title: Error Upgrading Blazor from 3.1 to 5.0 "does not have a property matching the name 'PreferExactMatches'"
body: <p>As per the migration document <a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/routing?view=aspnetcore-5.0#route-templates" rel="noreferrer">here</a> it recommends to add this property <code>PreferExactMatches</code></p>
  <p><a href="https://i.stack.imgur.com/cj7uC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cj7uC.png" alt="enter image description here" /></a></p>
  <p>When I do I get this error</p>
  <p><code>InvalidOperationException: Object of type 'Microsoft.AspNetCore.Components.Routing.Router' does not have a property matching the name 'PreferExactMatches'.</code></p>
  <p>Even the <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.routing.router?view=aspnetcore-5.0" rel="noreferrer">API explorer</a> says the property isn't there. Am I missing anything in here? Please suggest.
  For now I am skipping it and its working.</p>