【发布时间】:2020-12-01 06:53:20
【问题描述】:
根据迁移文档here,建议添加此属性PreferExactMatches
当我这样做时,我得到了这个错误
InvalidOperationException: Object of type 'Microsoft.AspNetCore.Components.Routing.Router' does not have a property matching the name 'PreferExactMatches'.
即使API explorer 表示该属性不存在。我在这里有什么遗漏吗?请建议。 现在我正在跳过它和它的工作。
【问题讨论】:
-
重建解决方案
-
我确实按此顺序尝试了
dotnet cleandotnet nuget locals --clear alldotnet restoredotnet build -
这是我得到的运行时错误。
-
我猜 PreferExactMatches 已从路由器标签中删除