Forum Discussion
Nigel Price
Mar 12, 2017Iron Contributor
Are We moving from dll hell to Nuget Package Hell ?
I am trying to compile SharePointPnP.Powershell and I am getting this message :- Error CS1705 Assembly 'Microsoft.SharePoint.Client' with identity 'Microsoft.SharePoint.Client, Version=16.1.0.0...
Mar 13, 2017
In this case we don't use nuget packages for the CSOM sdk. We refer to them from the PnP Sites Core repository, which is the reason we require a clone of that repository too on your machine. Did you update that repo too before you tried to compile the PowerShell project?
- Nigel_Price9911Mar 13, 2017Iron Contributor
It turns out all of the problems were in SharePointPnP.PowerShell.Tests.
I went through all of the references and change the 16.0.0.0 -> 16.1.0.0
Then worked fine.
SharePointPnP.PowerShell.ModuleFilesGenerator and SharePointPnP.PowerShell.Commands were at 16.1.0.0
- Nigel_Price9911Mar 13, 2017Iron Contributor
Hi Erwin
Yes, I have a clone of the PnP Site Core Repository.
Yes, I did update that repo before trying to compile the PowerShell project.
The PnP Site Core Repository compiled successfully.
It was the PnP Powershell repo which failed. I updated the references and it all compiled.
But I should not need to do that should I ?
Nigel