Kendo .net 核心 3.1

Kendo for .net Core 3.1

我尝试在我的 Razor Pages 应用程序中使用 Kendo,我遵循了此文档 https://docs.telerik.com/aspnet-core/getting-started/first-steps,但出现错误:

System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator': Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=3.1.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.)'

我正在使用 Telerik.UI.for.AspNet.Core,版本 2019.1.220。

我将添加我的评论作为答案,因为 this Telerik thread 确认(并引用了您遇到的相同错误)您需要更新版本的 Kendo支持 .NET Core 3.1。

这里引自上面链接的线程 - 关于 .NET Core 3.0 需要比您使用的版本更高的版本:

Artem, that is correct. Only the latest version of the UI for ASP.NET Core suite (2019.3.1023) offers official support for .Net Core 3.0.

Jerry, feel free to contact us if you have any further questions on the .Net Core 3.0 integration.

Regards, Veselin Tsvetanov

R3 2019 is the first release 提到完全支持 .NET Core 3.1。