TFS Build - handle compiler warnings as errors?

Is there a way to force the use of “Process warnings as errors” at the TFS build level? I know that you can do this on a project-by-project basis, but you need to ensure compliance with the TFS level.

+4
source share
2 answers

Not. It is always tied to the assembly definition.

If you use TFS2010, you may need to modify the default process template so that you do not have to make the same change in every assembly definition that you have.

+4
source

@felickz

you need to use this parameter. so that all your warnings will be treated as an error

/ p: TreatWarningsAsErrors = "true"

I used this setting and its work for me.

+3
source

All Articles