My pipeline is failing after some refactoring involving project renaming. Although the tests run fine both locally and in the pipeline, I get this error:
"Testhost process for source(s) '../MyProject.dll' exited with error: Error:
An assembly specified in the application dependencies manifest ($SLN_NAME.MyProject.deps.json) was not found:
package: 'xunit.abstractions', version: '2.0.3'
path: 'lib/netstandard2.0/xunit.abstractions.dll'
Test Run Aborted."
"Testhost process for source(s) '../MyProject.dll' exited with error: Error:
An assembly specified in the application dependencies manifest (testhost.deps.json) was not found:
package: 'Microsoft.TestPlatform.CommunicationUtilities', version: '15.0.0.0'
path: 'Microsoft.TestPlatform.CommunicationUtilities.dll'"
I have not been able to find a solution for this one (the 'PublishWithAsp...' setting did nothing for me).
Here is the project structure in case it matters:
Hi Andrei and welcome to the community!
The error indicates that the issue is most likely related to your project configuration rather than a problem with Pipelines.
I would suggest first debugging this locally with Docker, using the same Docker image that you use as a build container in Pipelines, and see if the issue is reproducible:
What Pipelines does is start a Docker container for each step based on the image you have specified in your yml file, clone your repo in that container and then execute the commands of the step's script.
If the issue is reproducible, I would suggest reaching out to a forum dedicated to .NET development, e.g. Microsoft's forum here: https://techcommunity.microsoft.com/t5/net/ct-p/dotnet
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.