InliningAnalyzer
InliningAnalyzer copied to clipboard
Cannot run analyzer: System.Private.ServiceModel was not found
Cannot run this analyzer on several projects, e.g. a public one: https://github.com/Spreads/Spreads.LMDB/
I have only dotnet --version 2.1.402
on my Windows 10 machine (plus full framework 4.7.2).
Haven't found in the docs what dependencies I need to make it work.
Scope: All Types and Methods
Error:
An assembly specified in the application dependencies manifest (JitHost.Core.x64.deps.json) was not found:
package: 'System.Private.ServiceModel', version: '4.5.3'
path: 'runtimes/win/lib/netstandard2.0/System.Private.ServiceModel.dll'
Finished Inlining Analyzer
I couldn't reproduce the error on my machine. Could you post the output of dotnet --info
?
Does it work with .NET Framework (select "NetFramework" as preferred runtime in Tools->Inlining Analyzer->Options)?
Could you post the output of dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.1.402
Commit: 3599f217f4
Runtime Environment:
OS Name: Windows
OS Version: 10.0.17134
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.402\
Host (useful for support):
Version: 2.1.4
Commit: 85255dde3e
.NET Core SDKs installed:
2.1.401 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Does it work with .NET Framework
It doesn't, but with many other errors. Will post them later if you need.
I was finally able to reproduce this and think I found the cause. The published assemblies contained a reference to a wrong path, so this only worked if you happened to have all the right assembly versions already in your nuget package cache.
I have just uploaded a new version (0.7.3) with a fix for this to the marketplace. Could you please check if the issue is fixed for you with this version? If there are still other errors, please create a new issue for them.