The “GenerateDepsFile” task failed unexpectedly August 10, 2023 by Tarik I had the same problem using .Net Standard 2.1, and I solved it for myself by cleaning the solution and then rebuilding it.