I seem to have a situation where code that I put into the BeforeBuild target is not successfully executing.
Here is what I have:
<Target Name="BeforeBuild" >
<Message Text="Before Build" />
</Target>
I can’t see the message output in the build log when the build runs. Is there something wrong with the way I’ve formatted this, or does it have to be in a specific place in the script? Am I even looking in the correct place for these messages?
EDIT: changing the importance to high seems to make no difference
See the answer to this question MS-Build BeforeBuild not firing
You just need to move the BeforeBuild target so that it appears after the line that imports Microsoft.CSharp.targets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With