I am using Open XML SDK 2.0 Productivity Tool to reflect the code of an empty PowerPoint 2010 presentation. I copied the generated code to a .cs file in a project which has a reference to DocumentFormat.OpenXml.dll (v2.0.5022.0). When I compile the project, some errors appear:
Scene3D does not exist in the namespace 'DocumentFormat.OpenXml.Drawing'
TextAlignValues does not exist in the namespace 'DocumentFormat.OpenXml.Drawing'
TextAnchoringValues does not exist in the namespace 'DocumentFormat.OpenXml.Drawing'
It seems that the Productivity Tool is generating code that references types that are not in the OpenXML namespace despite I just downloaded the whole pack from the Microsoft site:
http://www.microsoft.com/en-us/download/details.aspx?id=5124
In the other hand, MSDN documentation states that Scene3D class belongs to a different namespace: DocumentFormat.OpenXml.Drawing.Diagrams and TextAlignValues and TextAnchoringValues are replaced by TextAlignTypeValues and TextAnchoringTypeValues.
What is wrong? Is the code reflector generating wrong code or my references to OpenXML dll are bad? How should I correct this?