How to create post build event on rider?

Hi, i need to create event after using command "Rebuild Solution", i need to update my extension in path: wwwroot/web/extension and now i using .bat file for this. But i so lazy and want that my .bat file starts after command "Rebuild Solution".

And i want to ask you, how to add configuration, which will be rebuilding my solution and start my bat file? 
I don't want two clicks on button, if i can use one button :))

And how do I add the configuration that I attach to the process? I don't want to find my own process every time

Please, Help me!) 

0
1 comment

Hello Daniel,

Thank you for contacting Rider support.

Would you mind trying the following solutions?

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
      <Exec Command="exec {PathToScript}" />
</Target>


Hope it helps. Should you encounter any difficulties or have any other questions, please let me know.
Have a nice day!

1

Please sign in to leave a comment.