Cloud Build failed when Mono.Cecil is used

We’re using Mono.Cecil in our custom weaver which resides in Assets/Editor folder and thus have access to pre-referenced Mono.Cecil lib since 5.1 during the normal in-editor build. But during cloud build it fails.
Target platform: default-windows-desktop-64-bit
Error: [Unity] Assets/Editor/Replication/StateReplicationWeaver.cs(11,12): error CS0234: The type or namespace name Cecil' does not exist in the namespace Mono’. Are you missing an assembly reference?

I am also having this issue, as I am using the Unity Test Tools. Does anyone know any fixes?