On SP 2016 on-prem I am trying to write a console application to upload files, mainly display templates.
I create a dummy site collection, and upload display template in "_catalogs/display templates/myfolder", and try to extract out the xml in order to be able to add dislpay templates programatically by using the command for apply template.
I tried this for extracting the schema:
Get-PnPProvisioningTemplate -Out C:\temp\pnptest\nytest.xml -Handlers Files
and this
Get-PnPProvisioningTemplate -Out C:\temp\pnptest\nytest.xml -Handlers All
None of these seems to work for giving me the schema xml for provisioning display templates. Actually I can not find anything related to my display templates in the xml. How can I upload display templates by using pnp ? Please advice.