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

Migration to .net 6 and openxml 3.0.1 #43

Open digitalsigi opened 8 months ago

digitalsigi commented 8 months ago

I am working on an app requiring net 6 on windows and linux. So I migrated this library to .net 6 and newest version of DocumentFormat.Openxml.

Note: It was also required to update NUnit. For this I changed ASsert to ClassicAssert.

antonmihaylov commented 7 months ago

what is preventing you from using the netstandard 2.0 library in dotnet 6 🤔

digitalsigi commented 7 months ago

Well, I am working on an app which should run on Windows, Linux and MacOS. For this I use https://github.com/ElectronNET/Electron.NET and Blazor. Now I experienced compile errors when building the app on linux. I was not able to fix that. I suspect that the version of underlaying OpenXML SDK is the problem. It comes with a bunch of Debian and other linux references.

So I tried to upgrade just this package and found that API has changed. Finally I decided to migrate to .net 6. and newest OpenXml SDK and everything was fine.