X.PagedList.Mvc.Core -Version 7.6.0

Azhagiri R 1 Reputation point
2021-02-02T09:18:58.867+00:00

X.PageList.Mvc.Core is not installing and giving error
as
Install-Package : Could not install package 'X.PagedList.Mvc.Core 7.6.0'. 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. For more information, contact the package author.

How to fix this issue?

Thanks
Azhagiri R

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,397 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
    2021-02-03T03:24:25.55+00:00

    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).

    63207-nuget1.png

    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.

    63260-net.png

    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.
    0 comments No comments