.NET Code Inspections fail to work (thousands of bogus Module 'D' should be referenced errors)

We recently upgraded to TeamCity 8.0.3 from 7.1.x.  We have a nightly build that does .NET code inspections on our code.  After the upgrade, the inspections now report over 5000 erroneous compiler errors.  All of these come from the razor cshtml files with the message "Module 'D' should be referenced".  I have no idea what Module "D" is supposed to be.We use Resharper 7.1.3 in Visual Studio 2012 and no errors are reported in Visual Studio.  The project builds fine and runs correctly without any issues.  These "errors" only started after the TeamCity upgrade.Clicking on the link in TeamCity simply takes you to a line in the cshtml files for which there is no error.I am attaching the build log as well as the dotnet-tools-inspectcode.log and the inspectcode-report.xml files.Reviewing the TeamCity build log, there are now numerous errors reported and logged during the inspections step saying there was an error while decompiling the method MoveNext.  For example:Internal exception thrown: An error occured while decompiling the method MoveNext (type: DSP.Website.SelectLists.StateSelectListOptionProvider+<GetStateSelectListItemsForColleges>d__2, assembly: DSP.Website, Version=3.0.297.0, Culture=neutral, PublicKeyToken=null). Attempt to remove a block that has an alive predecessor.

Attachment(s):
inspectcode-report-7886028278735157628.xml
DSP_Default_with_Inspections_3.0.297.0.log.zip
dotnet-tools-inspectcode.zip
1 comment
Comment actions Permalink
FYI, this has been submitted as a bug as TW-32346
0

Please sign in to leave a comment.