antonmihaylov / OpenXmlTemplates

Word .docx templating system that is designer (no scripting tags) and server-friendly (no word installation required)
GNU Lesser General Public License v3.0
89 stars 25 forks source link

Update DocumentFormatXml to V3.0.1 #42

Closed digitalsigi closed 8 months ago

digitalsigi commented 8 months ago

Current OpenXmlPackage V2.20.0 does not support SaveAs anymore. Details here: https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.packaging.openxmlpackage.close?view=openxml-2.20.0

SaveAs in Version 2.0.5 lead to an error. So I had to update to newest version.

I also updated NUnit and changed Assert to ClassicAssert as quick solution.

digitalsigi commented 8 months ago

I am using this package for .net 6 based application with electron.net, but a lot of libraries are not available in this context. I will try to port it to .net 6. However I'll close this pull request