Tobias Zimmergren 4/10/2021

Solution: Unable to find .deps.json when running .NET 5 tests in Azure DevOps

Read Original

This article provides solutions for resolving the 'Unable to find .deps.json' error that occurs when running .NET 5 xUnit tests in Azure DevOps. The error arises due to duplicate files in the /ref/ folder. Two solutions are offered: setting ProduceReferenceAssembly to false in the .csproj file to disable reference assembly generation, or configuring Azure DevOps test tasks to ignore the /ref/ folder path. The article includes code snippets and YAML examples for implementation, targeting developers using .NET 5 and Azure DevOps pipelines.

Solution: Unable to find .deps.json when running .NET 5 tests in Azure DevOps

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser