Dependency with NuGet

Jan 30, 2014 at 2:17 PM
Edited Jan 30, 2014 at 2:33 PM
Hello,

i downloaded both PowerTools 2.2 and DocumentBuilder 2.3 yesterday and tried to fix the reference to DocumentFormat.OpenXml with a NuGet dependency in the projects. This simply not works cause the namespace DocumentFormat cannot be resolved. After installing OpenXml 2.5 for Office and referencing this .Net library the build succeeds. Can you tell me whats the difference? I would really prefer the NuGet dependency because i want to bringt the powertools in my own local NuGet Repository after that step. BTW best solution would be to retrieve the whole powertools binaries over the official NuGet Gallery.

Hope somebody can help me.

EDIT: Sry folks, i found the problem. The Solution of Power Tools works default with .Net Framework 3.5, so when you add OpenXML with NuGet this library is .Net 4.0 - this simply not fits together. To solve the problem just raise Power Tools to .Net framework 4 or above.
Marked as answer by rasetech on 1/30/2014 at 6:33 AM