I'd like Code Analysis violations to show up as warnings locally (so that devs can still F5 run even if there are CA violations), but as Errors in the TFS Build (more specifically I'd like the build to fail).
I still want to maintain the list of rules I care about in one place though, so I don't want to have to create separate ruleset files for local/TFS.
Any ideas for how I could configure this?
Add a msbuild parameter on the build definition. I thinks its /p:CodeAnalysisTreatWarningsAsErrors=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With