"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.
Please sign in to leave a comment.
Skovsende, issue is created https://youtrack.jetbrains.com/issue/RSRP-464129
Skovsende, what version do you use?
Please, try latest 2017.1 EAP.
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
Web app
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.
How do I ignore it - I'm a little unsure what specific warning to ignore in my dotsettings file.
By ignoring I've meant not to pay attention to that output. You can't suppress this warning with any setting.
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.
I am having same issue with build. Did you guys find any solution yet?