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

C# templating: don't save the file if it would be unchanged #187

Tarmil opened this Issue Aug 15, 2018 · 0 comments


None yet
1 participant

Tarmil commented Aug 15, 2018

Currently it is not possible to use dotnet watch on a C# project that uses templating: the compiler writes the *.g.cs file, which prompts dotnet watch to restart compilation, and so on indefinitely. The fix would be to read the existing file if it exists, and only write if the new contents would be different.

@Tarmil Tarmil added the enhancement label Aug 15, 2018

@Tarmil Tarmil self-assigned this Aug 15, 2018

@Tarmil Tarmil closed this in 2adceca Oct 30, 2018

@Tarmil Tarmil added the label Oct 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment