dotnet-affected icon indicating copy to clipboard operation
dotnet-affected copied to clipboard

Flag to include not only the dependents, but also the dependencies

Open BenjaBobs opened this issue 4 months ago • 3 comments

Our team uses dotnet-affected ( :heart: ) to only built/test/deploy the affected projects in our monorepo.

However due to various small issues between the dotnet tools (build/test/publish) and traversal files, we output the affected projects as .txt, and use that to create a new affected.sln. It turns out that not all properties (e.g. configuration) are passed properly to all built projects when building a solution file whose projects have dependencies that are not also in the solution file, see https://github.com/dotnet/sdk/issues/25973.

For that reason we also manually construct an affected_with_dependencies.sln using dotnet list reference.

If dotnet-affected could do this with a flag it would greatly simplify (and probably speed up) our CI pipeline.

Thanks for your time and hard work so far.

BenjaBobs avatar Oct 14 '24 07:10 BenjaBobs