Snowflaqe icon indicating copy to clipboard operation
Snowflaqe copied to clipboard

[MSBuild] Smart way to generate code only if changed

Open xperiandri opened this issue 2 years ago • 1 comments

I suppose we need to create a cache file with the MSBuild task version and a map of the file name and its hash. In the next generation, the task will read the cache and compare the MSBuild task version. If it is different then remove all and generate. Then compare files lists, if they are equivalent then hash each file and compare hashes. If lists are different or any GraphQL file is different, then remove all and generate.

@dim-37 @Zaid-Ajaj what do you think?

xperiandri avatar Nov 14 '21 09:11 xperiandri

I would definitely keep an eye on Bazel, which excels at this kind of thing. The F# rules are still pretty early though: https://github.com/bazelbuild/rules_dotnet

njlr avatar May 03 '22 17:05 njlr