Changing defines causes sharedassets0.assets to be corrupted

Hi

In our build pipeline we have a pre build step before we start the real build process, where we change target platform, defines and such to match what is desired. In that process sharedassets0.assets corrupts if we change any defines.

I’ve found out it only happens when we build in batchmode. I can’t find any exceptions or errors in the build logs for builds with corrupted sharedassets0.
The first time it happened was after upgrading test framework to 1.18. I’ve since downgraded to 1.16 which we ran before, but it makes no difference.

Anyone have any idea what it could be?

Hi! Did anybody manage to fix this?