Question

I am creating my first Azure Function(with .net core 3.0) with SharePointPnPCoreOnline package. When I created a function project without SharePointPnPCoreOnline its working without any error.

But when I added SharePointPnPCoreOnline its started giving me warning message like below

Warning NU1701 Package 'SharePointPnPCoreOnline 3.18.2002' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.0'. This package may not be fully compatible with your project. CRB.Functions C:\Ravi\Source\Functions\Functions.csproj 1

enter image description here

enter image description here

Was it helpful?

Solution

SharePointPnPCoreOnline is a wrapper around CSOM, which is not compatible with .NET Core without a bit of hacking.

You need to use full .NET Framework, and V1 of the Functions runtime, in order to use that Nuget package with Azure Functions.

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