Track source of transitive dependency

I recently ran into an issue related to source generation in dotnet when using the FastEndpoints.Generator package. The short story is that the version of the package I was using required a specific version of the Roslyn compiler yet my codebase was pulling in an older one. Looking through the transitive nuget packages, I found the Microsoft.CodeAnalysis.CSharp package and, indeed, it was an older version. I needed to know which top-level nuget package was pulling this. Visual Studio, unfortunately, does not offer this information through its nuget management UI. ...

April 12, 2025 · 1 min · Me