Install-Package : Unable to resolve dependency 'PnP.Core'. Source(s) used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'.

developer sp1 461 Reputation points
2021-02-23T06:49:27.103+00:00

I‘m installing PnP.Framework in Visual Studio .NET Core solution using this command:

Install-Package PnP.Framework -Version 1.2.0

But return this error:

Install-Package : Unable to resolve dependency 'PnP.Core'. Source(s) used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'.

Please how to fix this error ?

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,572 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,561 Reputation points
    2021-02-24T02:25:58.993+00:00

    Hi @developer sp1 ,

    Please install PnP.Core firstly using this command in Nuget Console:

    Install-Package PnP.Core -Version 0.5.46-beta2  
    

    Then install PnP.Framework, it will work as expected:

    Install-Package PnP.Framework -Version 1.2.0  
    

    Thanks
    Best Regards


    If an 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.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful