Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run analyzer: System.Private.ServiceModel was not found #8

Open
buybackoff opened this issue Oct 15, 2018 · 3 comments
Open

Comments

@buybackoff
Copy link

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

@szehetner
Copy link
Owner

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)?

@buybackoff
Copy link
Author

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.

@szehetner
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants