Question

Should it be possible to add PnP. Framework to Windows App? When I addd the nuget package I get following?

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

Was it helpful?

Solution

I came across this error when trying to add the PnP.Framework package as well.

I ran:

Install-Package PnP.Framework -Version 1.2.0

and got:

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

I took a peek at the package on NuGet. I expanded "Dependencies," then clicked on "PnP.Core," which brought me to the page for the package it was complaining about.

In Visual Studio, I opened up the Package Manager Console, and put in the command to install it manually (listed on the package's page):

Install-Package PnP.Core -Version 0.5.38-beta2

"PnP.Core" was successfully installed.

Then I tried to run my first command:

Install-Package PnP.Framework -Version 1.2.0

This time it worked. I'm not well versed in the dependency references of NuGet packages so I really couldn't say why it wasn't able to automatically add it, but this worked.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top