An assembly specified in the application dependencies manifest was not found
See original GitHub issueFrom @wh1t3cAt1k on March 20, 2018 18:38
Steps to reproduce
- Unpack the following project in VS Code: CoreRestaurants.zip
cd
into the directorydotnet build
dotnet ef dbcontext list
Expected behavior
I see the dbcontexts list or a meaningful error.
Actual behavior
I see an obscure error
Error:
An assembly specified in the application dependencies manifest (CoreRestaurants.deps.json) was not found:
package: 'CoreRestaurants', version: '1.0.0'
path: 'CoreRestaurants.dll'
Workaround
It took me 2 days to figure out that the problem might be in access rights, and running the above stuff with sudo
fixes the issue.
In hindsight it is surprising how I didn’t guess it from the outset, but hey, everything is obvious in hindsight.
My point is that the error could be more descriptive so that people spend less time figuring out what went wrong. Perhaps there should be additional explicit checks made by the tool.
Note: the same issue with dotnet ef migrations list
.
Environment data
I into the ~/Projects/CoreRestaurants
folder.
I run Mac OS 10.13.2 (17C88).
dotnet --info
output:
.NET Command Line Tools (2.1.101)
Product Information:
Version: 2.1.101
Commit SHA-1 hash: 6c22303bf0
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.1.101/
Microsoft .NET Core Shared Framework Host
Version : 2.0.6
Build : 74b1c703813c8910df5b96f304b0f2b78cdf194d
Copied from original issue: dotnet/cli#8851
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top Results From Across the Web
An assembly specified in the application dependencies ...
To solve the first half of the error message, An assembly specified in the application dependencies manifest (…) was not found be sure...
Read more >An assembly specified in the application dependencies ...
An assembly specified in the application dependencies manifest (appname.deps.json) was not found: package: 'Microsoft.ApplicationInsights.
Read more >An assembly specified in the application dependencies ...
An assembly specified in the application dependencies manifest (Microsoft.AspNetCore. ... HostingStartup.deps.json) was not found.
Read more >Fixing "An assembly specified in the application ...
Let's fix all the problems! Fixing “An assembly specified in the application dependencies manifest [projectname].deps.json was not found”.
Read more >"An assembly specified in the application dependencies ...
How to resolve the issue “An assembly specified in the application dependencies manifest was not found”? ... Change your target project to be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just a comment for whoever is having this problem on VS2017. I was running the Scaffold-DbContext from nuget package manager console and was getting the error “An assembly specified in the application dependencies manifest (WhateverProjectName.deps.json) was not found”. If you’re running this command for another project in a solution (most likely a library) you have to ensure the startup project is the one you are running the Scaffold-DbContext command for. Just choosing the Default project on nuget package manager is not enough.
You save the day. that was the exact issue!