We have the following scenario and are hoping someone can help:
- Original 2007 Publishing Site content database upgraded to 2010
- Page templates in use have never been Ghosted because they were manually added and are not part of the site definition, so their SPFile.CustomizedPageStatus property is set to 'None'
- Our updated templates are in a VS2010 deployment package, which is deployed via a feature (the deployment fails due to previous point)
- We've so far been unable to change CustomizedPageStatus via PowerShell or SPFile.RevertContentStream() because CustomizedPageStatus is set to 'None'. This method throws an exception by design if the property is 'None'
Ideally, we'd like to update the property to 'Uncustomized' (for example), so that the deployment will update all the files.
Entries in the Elements.xml file are in the following format:
<File Url="CustomMasterPage.master" Type="GhostableInLibrary" />
Grateful for any assistance.