Given:
I want to:
To run inspections from the command line, you need:
InspectCode.exe YourSolution.sln -o=<PathToOutputFile>
More optionsTeamCity has a special runner type to run such checks: Inspections (ReSharper)
In the R# CLT Plugins
field, you will need to specify the Unity plugin, for example: Download JetBrains.Unity/2021.2.0.129
If the .sln
file is not generated at the previous steps of building your project, you can generate it with running Unity with the parameter -executeMethod UnityEditor.SyncVS.SyncSolution