question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An assembly specified in the application dependencies manifest was not found

See original GitHub issue

From @wh1t3cAt1k on March 20, 2018 18:38

Steps to reproduce

  • Unpack the following project in VS Code: CoreRestaurants.zip
  • cd into the directory
  • dotnet 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
PsMastercommented, Jan 3, 2019

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.

0reactions
armin1980mcommented, Jan 19, 2020

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.

This saved my day, thanks!

You save the day. that was the exact issue!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found