I need to execute a command after publishing a .NET core WPF app in Visual Studio.
I tried following custom target in .csproj and .pubxml, but it doesn't work:
<Target Name="CustomActionsAfterPublish" AfterTargets="AfterPublish">
<Exec Command="ECHO custom action has been called" />
</Target>
I also tried AfterTargets="Publish" with no success.

