I have a MSBuild task that modifies an assembly. At the moment I place the Task in the AfterBuild Target of the project file. Unfortunately this does not work for Silverlight because the XAP is packaged before the afterbuild is fired. The same problem exists for VSIX projects.
So how do I get this scenario to work?
Is there another Target I should be using?
If you only need compiled assembly for modification you can change target name on "AfterCompile". In AfterCompile target you will get only the assembly without any additional resources like satellite assemblies.