I was wondering if someone would advise the best approach. I'm looking to develop a desktop application that will perform a number of queries to SharePoint list items in Team Sites and My Sites. Possibly downloading files and uploading etc.
I'm currently researching which would be the best method. I've used CSOM but this article Using correct Client Side Object Model (CSOM) version for SharePoint customizations
I don't want to be tied to a particular CSOM version as I want this to work both for SharePoint 2013 and 2016 and possibly any future versions.
What would be the best approach?
In this article it says the following?
I have tested SPO CSOM to on-premises and it works, why is that?
It works fine unless you will use properties or methods which are not exposed in the on-premises. If you can guarantee that your code does not touch properties which have not been enabled in on-premises version, you can theoretically use SharePoint Online CSOM with on-premises as well. We do however recommend on using right CSOM version for specific server side version to avoid issues.
Can these properties/methods be enabled or is this out of box and can not be changed?