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 ?

Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

Accepted answer
  1. ZhengyuGuo 10,586 Reputation points Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.