From 7f0dd34b908aba3356a516bf3c8fbd46c523d5d4 Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Mon, 18 May 2026 15:26:56 -0700 Subject: [PATCH 1/2] chore: align project configuration with NuGet library template best practices - Add CentralPackageTransitivePinningEnabled to Directory.Packages.props for supply-chain security - Bump LangVersion from 13.0 to 14 in Directory.Build.props - Change line endings from CRLF to LF in .editorconfig; enable insert_final_newline - Add .gitattributes to normalize line endings across platforms - Add PackageTags to Directory.Build.props for NuGet discoverability --- .editorconfig | 4 ++-- .gitattributes | 35 +++++++++++++++++++++++++++++++++++ Directory.Build.props | 3 ++- Directory.Packages.props | 1 + 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig index c4e712d..01c4e3c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -26,8 +26,8 @@ indent_size = 4 tab_width = 4 # New line preferences -end_of_line = crlf -insert_final_newline = false +end_of_line = lf +insert_final_newline = true #### .NET Coding Conventions #### [*.{cs,vb}] diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..56bf329 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,35 @@ +# Auto normalize line endings for all tracked files +* text=auto + +# Explicitly normalize to LF for text files +*.cs text eol=lf +*.csproj text eol=lf +*.props text eol=lf +*.targets text eol=lf +*.sln text eol=lf +*.slnx text eol=lf +*.md text eol=lf +*.json text eol=lf +*.xml text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.config text eol=lf +*.editorconfig text eol=lf +*.gitignore text eol=lf +*.gitattributes text eol=lf + +# Binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.mov binary +*.mp4 binary +*.mp3 binary +*.gz binary +*.zip binary +*.7z binary +*.ttf binary +*.otf binary +*.fnt binary diff --git a/Directory.Build.props b/Directory.Build.props index a55340b..cde35a3 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -11,7 +11,7 @@ See: https://learn.microsoft.com/visualstudio/msbuild/customize-your-build enable enable - 13.0 + 14 true + true