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.

F5 Debug issue: An assembly specified in the application dependencies manifest was not found

See original GitHub issue

From @LazerFX on February 15, 2018 10:32

I have spent a few days trying to figure out why F5 debugging doesn’t work. I believe I have an idea, however I don’t know how to fix it, hence posting here for assistance.

I have a .NET Core 2.0 application that has a UI project, a Service project and several DLL projects. The UI project has been created by doing a dotnet new aurelia. I’m using ReSharper, so have added the JetBrains.Annotations version 11.1.0 NuGet project to the package.

When I attempt to F5 run, I get the message:

IDAMock.UI> Error:
IDAMock.UI>   An assembly specified in the application dependencies manifest (IDAMock.UI.deps.json) was not found:
IDAMock.UI>     package: 'JetBrains.Annotations', version: '11.1.0'
IDAMock.UI>     path: 'lib/netstandard1.0/JetBrains.Annotations.dll'
IDAMock.UI>

I’ve tested, and this happens whether I am launching Project, IIS or IIS Express. If I do a dotnet run from the command prompt, it launches http://localhost:5000 and correctly runs. If I publish to IIS, it runs. It appears to be only the IIS Debugging handler that is triggering this issue. Of course, if I remove the JetBrains.Annotations reference, then it works - but that’s not a long term solution, as there will be other NuGet packages that I’ll want to reference.

I’ve tried changing the value of <PublishWithAspNetCoreTargetManifest> in the .csproj, which doesn’t appear to change the results.

I found that the DLL was being output to ./Debug/netcoreapp2.0/PubTmp/Out, and copied from there to the ./bin/Debug/netcoreapp2.0 folder, which temporarily resolved the issue.

For now, I’m going to add a post-build task to do this copy manually, but this isn’t a permanent solution. How can I resolve this in a non-hacky manner? It only affects debugging, not deployment, but it’s proving quite debilitating.

Copied from original issue: dotnet/coreclr#16397

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
livarcocccommented, Feb 15, 2018

Given that this works in dotnet run, I don’t believe this is a CLI issue.

@BillHiebert can you take a look? Is there a more appropriate repo for debug issues?

0reactions
abpiskunovcommented, Apr 23, 2018

I see. Yes, it should not copy , it is expected. Good that it is working now. I will close this issue, please re-open if see it again in newer versions of VS and Sdk.

Read more comments on GitHub >

github_iconTop Results From Across the Web

F5 Debug issue: An assembly specified in the application ...
I've tried changing the value of <PublishWithAspNetCoreTargetManifest> in the .csproj, which doesn't appear to change the results. I found that ...
Read more >
An assembly specified in the application dependencies ...
I was able to resolve the issue by downgrading Microsoft.AspNetCore.All from 2.0.5 to 2.0.3, but would like to find a better solution to...
Read more >
"An assembly specified in the application dependencies ...
“An assembly specified in the application dependencies manifest was not found” when running Add-Migration in Entity Framework Core? This post ...
Read more >
An assembly specified in the application dependencies ...
Hello, I have a net core app service that has been running fine until yesterday. It works when I run it locally, but...
Read more >
'An assembly specified in the application dependencies ...
'An assembly specified in the application dependencies manifest was not found' ... Typically, the package that is not found is Microsoft.
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