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

Closed
Tarmil opened this Issue Aug 15, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Tarmil
Member

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 4.5.5.155 label Oct 30, 2018

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