Difficulty getting Code Analysis to run

TeamCity Enterprise 10.0.5
Visual Studio 2017

I have a C# project with Code Analysis configured. I'm using a path to a .ruleset in the project to insure the rule set can be found.

In TeamCity, I have a build step with the MSBuild runner set to build the solution using MS Build Tools 2017.
For command line parameters, I set: /p:Configuration=Release /p:RunCodeAnalysis=true
(I've also tried this using system properties; that makes no difference.)

The RunCodeAnalysis target isn't run. I'm not seeing anything relevant in the log.

What can I do to get this to work?

1
2 comments
Avatar
Nikolay Pianikov

 

Do you have Visual Studio installed on the TeamCity build agent's machine? Pease check and install if it is not installed

0
Avatar
Permanently deleted user

I do not have Visual Studio installed on TeamCity; I would rather use MSBuild. Is this possible?

0

Please sign in to leave a comment.