I have been automating all my builds through PSake and finding it really useful to get my TeamCity build more powerful.
One thing I would like to introduce is a step to make sure all projects in a solution have warnings as errors set to true. It isn't that often that I spot a project not having this but I am also now working on a legacy codebase where it is not so prevalent.
I was hoping to be able to create a quick check that the setting was on. I am guessing there would be a way by checking for the correct text (
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
) in the .*proj files but I hoped there might be a cleaner or more effective way.
Any ideas?