In the main class library there was an older version of DiagnosticSource 5.0.0.0, I changed that to 6.0.0.1 and it was resolved. Unfortunately very project specific.
DiagnosticSource 5.0.0.0
6.0.0.1