dotnet / dotnet/core

`Error: assembly specified in the dependencies manifest was not found` -- Even when explicitly referenced

Open
#4,035 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

So I'm working this issue https://github.com/agracio/edge-js/issues/96#issuecomment-568206718 (relevant bits included below) but my [resultant binary from `node-gyp`](https://github.com/agracio/edge-js/blob/master/binding.gyp#L312-L346) can't seem to locate `Microsoft.CodeAnalysis.CSharp.Workspaces.dll` even though it's plainly there on disk right alongside all of my other `nuget`-retrieved packages:

```
Error: assembly specified in the dependencies manifest was not found --
package: 'Microsoft.CodeAnalysis.CSharp.Workspaces',
version: '3.4.0',
path: 'lib/netstandard2.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll'
```

I even swapped out the relative reference for an absolute one and it's pointed right at it but it still can't seem to find it.

```
Error: assembly specified in the dependencies manifest was not found --
package: 'Microsoft.CodeAnalysis.CSharp.Workspaces',
version: '3.4.0',
path: '/Users/bjenks/.nuget/packages/microsoft.codeanalysis.csharp.workspaces/3.4.0/lib/netstandard2.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll'
```

$ dotnet --info

```
.NET Core SDK (reflecting any global.json):
Version: 3.1.100
Commit: cd82f021f4

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.15
OS Platform: Darwin
RID: osx.10.15-x64
Base Path: /usr/local/share/dotnet/sdk/3.1.100/

Host (useful for support):
Version: 3.1.0
Commit: 65f04fb6db

.NET Core SDKs installed:
2.1.202 [/usr/local/share/dotnet/sdk]
2.1.607 [/usr/local/share/dotnet/sdk]
2.2.207 [/usr/local/share/dotnet/sdk]
3.0.100 [/usr/local/share/dotnet/sdk]
3.1.100 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
```

Let me know if there's anything I can attach that might be of diagnostic help.

Same results on Linux. `Error: Call to coreclr_create_delegate() for G failed with a return code of 0x80070002` on Windows (probably unrelated).

**Weird thing that I probably should have mentioned earlier:** I don't even have a `using` statement for `Microsoft.CodeAnalysis.CSharp.Workspaces`, just [these three](https://github.com/agracio/edge-js/blob/master/src/double/Edge.js.CSharp/EdgeCompiler.cs#L8-L10).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.