MSBuild - how to mark a goal to run even if AfterTargets fail

I have a target marked to run after the build object runs:

<Target Name="MySolutionAfterTarget" AfterTargets="Build" > 

However, what I notice when Build fails to fulfill my goal, does anyone know how I can mark my goal so that it always fulfills.

Thanks,

+4
source share

Source: https://habr.com/ru/post/1502379/