Lately, I've been working with PostSharp a bit. It is an AOP framework that allows us to do compile time code injection. You can just reference PostSharp assemblies, use it in your code and after compilation, you'll get an assembly that the desired code has been injected into it. I tried to find out how PostSharp integrates itself into the compilation process of Visual Studio and changes the code, but no results till now.
Is there any way to get Visual Studio to run some code during or after the compilation without using the project's post-build task or any plug-in?