Inspection Failures in MVC Project
I have a build with an Inspections (.Net) build step with the solution file as the target. What I found is most of the errors we are setting are from razor files (*.cshtml) - the error is "Cannot resolve <symbol name>". What is interesting is the MVC View compiles just fine and the 'using' for this symbol is in the views/web.config file so I suspect there is a bug here in that the web.config namespaces are not being used. Can someone confirm and let me know if/when this will be fixed.
Please sign in to leave a comment.
Hi Todd,
Could you please try to run inspections using command line build runner and "buildAgent\plugins\dotnet-tools\bin\inspectcode.exe" file with all needed properties (try to specify VisualStudioVersion ) which are used when you run inspections not using TeamCity?
Also we have a related issue, please watch/vote for it.
Alina,
I set this up (could not figure out how to pass teh VisualStudioVersion) but now I have a 13MB report.xml file which I cannot find a good way to parse/view as well as it does not appear running this from within TeamCity produces any kind of reporting and filtering like I had previously when using the built in runner. Can you help get us back to the same experiance we had previously?
BTW -- I am still getting the same errors in the razor files which all compile just fine.
<Issue TypeId="CSharpErrors" File="Drax.Web.Site\Views\Wi\Subtractions.cshtml" Offset="442-446" Line="11" Message="Cannot resolve symbol 'Html'" />
I also downloaded the latest version of the command line tools and ran it against my sln and I still get the same type of CSharpErrors even though my entire application/solution compiles just fine.
Todd,
You can import report XML files using service message:
To set VisualStudioVersion please use the following property:
where VisualStudioVersion is a technical Visual Studio version.