Solution: Unable to find .deps.json when running .NET 5 tests in Azure DevOps
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet