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

88 Views Asked by At

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.

2

There are 2 best solutions below

0
On BEST ANSWER

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
2
On

You could either request review for a pending change or find the particular shelveset and then request review. check the screenshot below:

enter image description here