Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSBuild] Smart way to generate code only if changed #58

Open
xperiandri opened this issue Nov 14, 2021 · 1 comment
Open

[MSBuild] Smart way to generate code only if changed #58

xperiandri opened this issue Nov 14, 2021 · 1 comment

Comments

@xperiandri
Copy link
Contributor

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?

@njlr
Copy link
Contributor

njlr commented May 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants