diff --git a/src/.gitattributes b/.gitattributes
similarity index 82%
rename from src/.gitattributes
rename to .gitattributes
index 627071bd..eb18c3a7 100644
--- a/src/.gitattributes
+++ b/.gitattributes
@@ -1,4 +1,5 @@
-* text
+# Auto detect text files and normalize line endings to LF
+* text=auto eol=lf
*.snk binary
*.png binary
diff --git a/src/.editorconfig b/src/.editorconfig
index 89ce3440..74a1481d 100644
--- a/src/.editorconfig
+++ b/src/.editorconfig
@@ -2,6 +2,8 @@ root = true
[*]
indent_style = space
+end_of_line = lf
+insert_final_newline = false
[*.cs]
indent_size = 4
diff --git a/src/ApiBuilderTests/Splitter.cs b/src/ApiBuilderTests/Splitter.cs
index 0277888d..cb6733e0 100644
--- a/src/ApiBuilderTests/Splitter.cs
+++ b/src/ApiBuilderTests/Splitter.cs
@@ -295,7 +295,8 @@ public static async Task Run()
}
lines.Insert(0,"#pragma warning disable");
lines.Insert(0,"// ");
- await File.WriteAllLinesAsync(outputPath, lines);
+ var content = string.Join("\n", lines) + "\n";
+ await File.WriteAllTextAsync(outputPath, content);
}
}
}
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index dbb081c8..9089052a 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -7,7 +7,7 @@
-
+