How to modify an assembly before it is packaged in a XAP?

87 views Asked by At

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?

2

There are 2 answers

0
Sergio Rykov On BEST ANSWER

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.

0
Taylor Bird On

This sounds lot like

How can I inject a XAML transformation into my build?

I gave a suggestion there that I think would help ya out. Take a look. If not, lemme know.