From 37c0aace4b7981e2f17b254b21b445dbb747aa6a Mon Sep 17 00:00:00 2001 From: Magnus Ahlberg Date: Thu, 3 Sep 2026 12:53:35 +0200 Subject: [PATCH] Write generated files with LF line endings The T4 templates emit CRLF in their literal text while SummarySafe uses Environment.NewLine for doc comments, so on Linux and macOS generated files came out with mixed line endings. Normalizing on write also keeps output identical across platforms, so teams with both Windows and Linux developers no longer see the whole client as modified after each run. --- src/Linq2GraphQL.Generator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linq2GraphQL.Generator/Program.cs b/src/Linq2GraphQL.Generator/Program.cs index b9bafcda..4ff05640 100644 --- a/src/Linq2GraphQL.Generator/Program.cs +++ b/src/Linq2GraphQL.Generator/Program.cs @@ -79,7 +79,7 @@ private static async Task GenerateClientAsync(Uri uri, string outputFolder, stri foreach (var entry in dirName) { var filePath = Path.Combine(directory, entry.FileName); - await File.WriteAllTextAsync(filePath, entry.Content); + await File.WriteAllTextAsync(filePath, entry.Content.ReplaceLineEndings("\n")); } } }