Is there a way to enforce "Treat warnings as errors" on the TFS Build level? I know you can do this on a project by project basis, but need to enforce on the TFS level.
If you're using TFS2010 you might want to look at altering the default process template so that you don't have to make the same change in every build definition you have.
3
votes
@felickz
you need to use this setting. so that all your warnings would get treated as error
/p:TreatWarningsAsErrors="true"
i used this setting and its working for me.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more