I have a project which has a post build event. When I commit the changes to my Bitbucket account, the CI pipeline runs and attempts to run the post build event as well. This post build event is only needed for local builds and I do not want it to run on CI. Is there any way to configure the post build event to only run through visual studio?
The post build event looks like this:
"C:\Projects\LicenseToolkit\LicenseToolkit\bin\Release\netcoreapp3.1\ApplyLicense.exe" $(TargetDir)
Is there any way to add a condition to it? I know there's a way to do it by editing the csproj file and adding a Condition attribute to the event but I'd like to know if it can be done on the editor in the Properties window.
Thanks a lot!