Mono build fail for unknown type 'fstring'

Hi
I am working on unreal and protobuf, and I customized protoc so I can return the value of fstring in order to make protobuf easier. The problem is that the build is good in msbuild but
When building from mac to mono, the build fails because fstring is unknown type.
Do you have any such cases?