Hello Azhagiri,
Thank you for taking time to post this issue in Microsoft Q&A forum.
Just as error message mentioned, “You are trying to install this package into a project that targets .NETFramework, Version=v4.5
, but the package does not contain any assembly references or content files that are compatible with that framework.”
You need to use a project based on .NET Framework 4.6.1+ or .NET Standard 2.0+ or .NET Core and .NET 5 2.0+ to install this X.PagedList.Mvc.Core – Version 7.6.0
. So the solution is changing to use the corresponding .NET versions from your project properties > Target framework, or creating and using a new project that based on the above .NET versions (the solution should dependent on your detailed develop situation).
The reason:
The X.PagedList.Mvc.Core – Version 7.6.0
dependents on .NETStandard2.0, Microsoft.AspNetCore.Mvc.Core (>=2.1.2), Microsoft.AspNetCore.Mvc.ViewFeatures (>=2.1.2), X.PagedList (>=7.6.0).
And refer to this document: .NET implementation support, you need to use a project based on .NET Framework 4.6.1+ or .NET Standard 2.0+ or .NET Core and .NET 5 2.0+ to install this X.PagedList.Mvc.Core – Version 7.6.0
.
Best Regards,
Tianyu
- If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.