Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity "Cannot resolve symbol" in Code Inspections .NET

We are running TeamCity 10.0.1.
The build steps for our project include the step "Inspections (.NET)", which is supposed to run the resharper code inspection.
The build itself and the unit tests are all succeeding but the result of the Inspection shows a lot of errors:

4: Cannot resolve symbol 'Drawing'
141: Cannot resolve symbol 'Image'
154: Cannot resolve symbol 'Bitmap'
155: Cannot resolve symbol 'Graphics'
[...]

This is obfuscating the real issues we should address.

Does anybody know why the inspections show this kind of error although the build is succeeding and how i can fix this?

like image 802
sebingel Avatar asked Nov 08 '22 09:11

sebingel


1 Answers

I had this problem with the code inspection at TeamCity 10.0.2 after installing the latest "JetBrains Resharper Command Line Tools" - 2017.2.2.

Using the previous one version

enter image description here

and assigning it to the build step

enter image description here

helped.

It seems that TeamCity 10.x can't work well with the 2017.xxx R# command line inspection tool. Maybe some parameters are not well passed....(?) I guess that upgrading to the TeamCity 2017.xxx and using the R# command line inspetion tool of a version 2017.x would solved the problem too.

like image 134
Motlicek Petr Avatar answered Nov 14 '22 23:11

Motlicek Petr