Hi,
I followed below link to download content of WikiPageLibrary for SharePoint OnPremise :
But above link is working for Online only and throw exception in case of OnPremise 2016 and 2019 server.
Error: Field or property "Versions" does not exist
Also in Online as well, it is not downloading attachment content.
Kindly confirm how can we read content or WikiPage library and it's version along with attachemnts in OnPremise via CSOM C#