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.
Currently it is not possible to use
dotnet watch
on a C# project that uses templating: the compiler writes the*.g.cs
file, which promptsdotnet 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.