Solution: apparently the third-party .dll was compiled as 32-bit, so I had to add a "win-x86" runtime identifier to the project.