title: What is the proper build event to run assembly postprocessing in Visual Studio/MSBuild
body: <p>I'm using PostSharp alternative called <a href="https://github.com/vc3/Afterthought" rel="nofollow">AfterThought</a> to postprocess some of projects in my solution. Unfortunately it looks like project's post-build event command line property isn't the right extension point where to plug the post-processor in, because the compiled assembly is copied to some of the dependent projects before post-build event is fired and postprocessor run. It's interesting that the problem occurss only for web site and web service projects - dependent class libraries got post-processed version of the assembly, but I guess the core of the problem is in the post-build event is invoked too late and that I should use different event.</p>
  
  <p>So I guess I need to enhance the build process/MSBuild of my projects directly in *.csproj files - is that right? And what build event is the right one for invocation of command line assembly post-processor?</p>