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

When upgrading NUnit3TestAdapter package to 3.16.1 via Visual Studio in a .NET Core 3.1 project, it automatically adds PrivateAssets and IncludeAssets like this:

    <PackageReference Include="NUnit3TestAdapter" Version="3.16.1">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>

That makes some tests invoked by dotnet vstest fail when run inside of a docker container based on mcr.microsoft.com/dotnet/core/sdk:3.1.201-bionic.

We’ve suffered 2 different errors so far, one of them being:

Testhost process exited with error: Error:
      An assembly specified in the application dependencies manifest (XXXXXXX.deps.json) was not found:
        package: 'Microsoft.Win32.Registry', version: '4.3.0'
        path: 'runtimes/unix/lib/netstandard1.3/Microsoft.Win32.Registry.dll'

The other one, whose logs I don’t longer have access to, was also indicating some issue with a dll inside of lib/netstandardXX.

We are unable to reproduce this either via VisualStudio or with dotnet vstest, just inside of a docker container based on the sdk image.

Removing PrivateAssets and IncludeAssets was the solution to workaround this issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
OsirisTerjecommented, Apr 19, 2020

Thanks @jnm2 !!
Actually not… I think that was added way back in time, since the adapter is only used during development, but then again, it is only added to the test projects, so it sort of has no additional meaning then. So we can then just set that to false.

0reactions
eduherminiocommented, Apr 20, 2020

Looks good to me, thanks @OsirisTerje!

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