At Unite11 there was a session on using reflection. Previously my team had given thought to weaving certain codes (null checks, logs, etc) into our codebase in our development environment that we do not want in the real game. To us at least, the $64M question is not about weaving the byte codes but where to do it in the build process. We asked this question and got a vague answer about using post processing.
The AssetPostProcessor class seemed to be a natural place to do this but does not look like it supports source assets per se. I guess I could always do this post build on the entire assembly but it would be really nice to roll it into process before the actual DLLs that Unity produces are written out. Post build processing would not buy me much in the editor.
Has anyone done any weaving during the build process, i.e., other than reading the DLL off the disk post build and instrumenting it?