power_settings_new

Type or namespace 'DocumentFormat' could not be found

by
asked
0 votes
424 views
I am developing a project in Visual Studio. I imported my project from Git and I am getting below error during performing build operation.

Type or namespace 'DocumentFormat' could not be found.

Its a brand new computer and Visual Studio installed.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (171 points)
selected by
0 votes
 
Best answer

Depending on your requirements and environment, you need to match the PowerTools and OpenXML SDK versions.

PowerTools 2.2 (which right now is the default download on codeplex) uses DocumentFormat.OpenXml version 2.0.5022.0 which comes with OpenXml SDK 2.0.
This project is built on .NET Framework 3.5.

PowerTools for OpenXML 3.0 version 3.* (also available to download at https://powertools.codeplex.com/releases/view/74771) uses DocumentFormat.OpenXml version 2.5.5631.0 which comes with OpenXml SDK 2.5.
This project is built on .NET Framework 4.0+.

 

add
...