Roslyn で生成される IL をこそっと編集したい

な、なんだってー(笑

You can create your own command line driver to replace csc.exe using the Roslyn APIs, and change your build system to invoke that instead of csc.exe.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/19c01285-56bc-4404-9819-7f06be104de1/code-rewrite-during-compilation?forum=roslyn

コンパイラ作りたいわけじゃないのですが、難読化や依存性注入みたいなかんじのノリで、ちょっと生成される IL を加工したいだけなんですが…。