- ALM used, Azure DevOps
- CI system used, Azure DevOps
- Languages of the repository C#
- Private SonarCloud is being used.
I have seen some posts in this community where people asking for help, the first reply is “Do you have post build events”?
I’ve just added some post build events to my Visual Studio solution, now my pipeline build fails with
##[error]ERROR: Failed to find InputFile for D:\a\1\s\ blah blah file name.cshmtl
I get a few of these errors.
The files do exist, and what I find strange is the error is from a csproj file where I haven’t added any post build events?
I have added ‘rem’ to the post build events in the order that they don’t get executed.
I’ve rerun the pipeline and everything is fine.
So what’s the score with having post-build events?
Also, I don’t know if it’s related but the Publish Quality Gate Result has gone from 2 or 3 minutes to over an hour. I don’t know if this has anything to do with the post build events or that I reviewed some of the issues highlighted for the first time? either way, I had to disable it in my pipeline which isn’t good.
After disabling the “Publish Quality Gate Result” task in my pipeline I thought I’ll run it with the post build events back, but with the quality gate still disable and everything is good.
If anyone can shed some light on what’s going on here I’d really appreciate it.