The “GenerateDepsFile” task failed unexpectedly May 25, 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.