Build error on SDL plugin ported from 2014 to 2017

Dear all,

I have ported a plugin from Studio 2014 to Studio 2017 according to the instructions here, including those referenced in the section "Upgrade from versions prior to Trados Studio 2015".

Overall, the process was seamless. However, when I now build the solution in Visual Studio, I get this error message:

No way to resolve conflict between "DocumentFormat.OpenXml, Version=2.6.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888" and "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "DocumentFormat.OpenXml, Version=2.6.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888" arbitrarily.

The error is not fatal, the plugin is built all the same.

I googled the general issue, but was not able to find any conclusive solution. The error did not occur before porting it and I have applied no changes other than those described in the instructions.

Any input would be appreciated.