An assembly specified in the application dependencies manifest (testhost.deps.json) was not found #710
Replies: 2 comments 1 reply
-
Which command does actually cause the error? Is it the first line:
Or the second:
If the first line? If yes, then I probably can't help. Maybe you have to update the |
Beta Was this translation helpful? Give feedback.
-
I use the same commands in my projects and it works fine for me. The error message seem strange to me:
ReportGenerator does not have a dependency to I have no idea what's wrong with your setup. |
Beta Was this translation helpful? Give feedback.
-
Following this integration guide - https://reportgenerator.io/getstarted
This command is continuously producing the below error. We don't
PS C:\TestFolder> dotnet test --collect:"XPlat Code Coverage" "\users\YOUR_USERNAME.nuget\packages\reportgenerator\5.4.1\tools\net8.0\ReportGenerator.exe" -reports:\TestResults*\coverage.cobertura.xml -targetdir:\coveragereport
VSTest version 17.11.1 (x64)
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Testhost process for source(s) '\users\YOUR_USERNAME.nuget\packages\reportgenerator\5.4.1\tools\net8.0\ReportGenerator.exe' exited with error: Error:
An assembly specified in the application dependencies manifest (testhost.deps.json) was not found:
package: 'Newtonsoft.Json', version: '13.0.1'
path: 'lib/netstandard2.0/Newtonsoft.Json.dll'
. Please check the diagnostic logs for more information.
Test Run Aborted.
I even tried to downgrade Newtonsoft.Json but that didn't help.
Beta Was this translation helpful? Give feedback.
All reactions