As part of a build process, I need to replace some of the code in a c# project at pre-build time. I hoped there is some hook available to specify in .csproj
file. I am using Rider. This article appears to be about what I need; https://learn.microsoft.com/en-us/visualstudio/ide/reference/pre-build-event-post-build-event-command-line-dialog-box?view=vs-2019, but I am not sure how to use it in .csproj
.
How do you specify pre-build actions in c#?