After getting the latest version of a SharePoint project from TFS and deploying it a list had lost all it’s custom columns. Title, Comment, and Description were the only survivors.
Interestingly, the schema.xml file in …\15\TEMPLATE\FEATURES\MyProject_MyFeature contained the correct fields.
After some head scratching I changed the list definition’s generic Type ID of 10000 to a specific one:
- …\MyProject\MyList\Elements.xml: Type=”10033″
- …\MyProject\MyList\MyListInstance\Elements.xml: TemplateType=”10033″
Re-deployed, problem solved.