Hi @Christophe Keller ,
Welcome to Microsoft Q&A forum.
From MSBuild side, publish target is only called when doing ClickOnce publishing, so AfterPublish target works for ClickOnce projects is true(see this doc: MSBuild targets for details).
Neither using AfterTargets="Publish"
nor using AfterTargets="AfterPublish"
in MSBuild should work.
You may need to consider other ways, I suggest you also post this question on MSIX community for better help.
Best Regards,
Tianyu
- If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.