An assembly specified in the application dependencies manifest was not found
See original GitHub issueWhen 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:
- Created 3 years ago
- Comments:5 (4 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
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.
Looks good to me, thanks @OsirisTerje!