Which nuget package do I need for both online and on-prem?

Microsoft

Hi everyone,

 

I've been reading through a lot of sharepoint docs lately as I begin to upgrade an existing (a bit dated) sharepoint CSOM solution. I came across the SharePointPnPCoreOnline package which seems to have all the APIs I'd need (OAuth, File, Attachments).

Now in the Readme of the github repo, you can see that there are some compiler directives available that I can (probably) use to generate binaries targeting Online and various On-Prem versions from the same code-base.

 

We do want to provide binaries of our solution for all 4 targets, so I want to know which of the 4 nuget packages would I need to include in my solution?

Or do I need to make a conditional CSPROJ which includes the right package depending on the chosen target? If so, then what are those compiler directives for?

 

Edit: Added link to 4 potential nuget packages

0 Replies