开发者

TFS Build - Treat compiler warnings as errors?

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.


No. It's always scoped to the build definition.

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.


@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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜