将 Blazor 从 3.1 升级到 5.0 时出错“没有与名称‘PreferExactMatches’匹配的属性”

bit*_*key 9 c# .net-core blazor

根据此处的迁移文档,建议添加此属性PreferExactMatches

在此处输入图片说明

当我这样做时,我收到此错误

InvalidOperationException: Object of type 'Microsoft.AspNetCore.Components.Routing.Router' does not have a property matching the name 'PreferExactMatches'.

甚至API 资源管理器也说该属性不存在。我在这里错过了什么吗?请建议。现在我正在跳过它及其工作。

小智 2

MS迁移文档位于补丁发布之前。(同时编辑该文档)。属性 PreferExactMatches 尚未发布,但将在未来几天发布。

https://github.com/dotnet/AspNetCore.Docs/issues/20838