"assembly cannot get its mvid" when using InspectCode

I get the following error when running InspectCode.exe:

Warning: Created resolver for C:\workspaces\Repos\xxx\xxx.Web\Bin\Microsoft.Azure.Documents.ServiceInterop.dll assembly cannot get its mvid. Check that the input assembly path is correct

The dll in question comes from this package: https://www.nuget.org/packages/Microsoft.Azure.DocumentDB/

I have tried excluding it with:

<s:Boolean x:Key="/Default/CodeInspection/ExcludedFiles/FileMasksToSkip/=DocumentDB_002ESpatial_002ESql_002Edll/@EntryIndexedValue">True</s:Boolean>

but it doesn't seem to get rid of the error. Googling for the error doesn't really give me anything. Any suggestions would be very welcome.

1
9 comments

Skovsende, what version do you use?

Please, try latest 2017.1 EAP.

0
Avatar
Permanently deleted user

Was using 2016.3.20170126.124346 - changed my buildscript to use 2017.1.20170330.131213-eap08 instead, but I still get the error:

JetBrains Inspect Code 2017.1 EAP 8
Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.2.9200.0
Custom settings layer is mounted. Used file C:\workspaces\Repos\xxx\xxx.sln.DotSettings
Using toolset version 14.0 from "C:\Program Files (x86)\MSBuild\14.0\bin"
Disabled solution-wide analysis according to Inspect Code command line Setting.
Warning: Created resolver for C:\workspaces\Repos\xxx\xxx.Web\Bin\Microsoft.Azure.Documents.ServiceInterop.dll assembly cannot get its mvid. Check that the input assembly path is correct

0
Avatar
Permanently deleted user

Web app

0

Skovsende, it's not error, but just warning. ReSharper is trying to process all referenced assemblies and fail on this one since it's native not managed assembly.
It doesn't affect any further analyses - so just ignore it. 

1
Avatar
Permanently deleted user

How do I ignore it - I'm a little unsure what specific warning to ignore in my dotsettings file.

0

By ignoring I've meant not to pay attention to that output. You can't suppress this warning with any setting.

0
Avatar
Permanently deleted user

The problem is that it fails my build as I have fail on warnings. So if I can't disable that specific warning via dotsettings, I have to enable static analysis.

0
Avatar
Permanently deleted user

I am having same issue with build. Did you guys find any solution yet?

0

Please sign in to leave a comment.