Search code examples
visual-studioperformancetfscode-analysisshelveset

How to do code analysis for particular shelveset in visual studio?


Kindly sugest a way to do code analysis of a particular shelvset (or only checked out / modified code) in visual studio. No luck using google.


Solution

  • You can use TFS build, run the code analysis on the MS Build task and queue the build for specific shelveset.

    • Create an empty TFS Build, add MS Build Task and put the argument: /p:RunCodeAnalysis=true enter image description here
    • Queue the build and choose a Shelveset. enter image description here