richardsondev / AggregateConfigBuildTask

A cross-platform MSBuild task that aggregates and transforms configuration files into more consumable formats.
https://docs.richardson.dev/AggregateConfigBuildTask/
MIT License
0 stars 0 forks source link

Don't modify the output the file if the input contents are the same #21

Open richardsondev opened 2 months ago

richardsondev commented 2 months ago

To prevent unnecessary updates to the output file and potential cache invalidation, we can compare the modification times of all input files with that of the output file. If none of the input files have changed, we can skip updating the output file. This approach avoids needless updates that could disrupt caching mechanisms relying on access times.

richardsondev commented 1 month ago

The main challenge here is if a file is deleted. We could look at the directory's modified time?