It is an old post, but I am facing similar issue after migrating from .net fw 4.7.2 to .net 8.
Could you recall, please, if you have found some better solution, than in your last answer? Thank you.