From 4cf2cc04a94df881eedfede07932a4d95f346f37 Mon Sep 17 00:00:00 2001 From: Taylor Buchanan Date: Wed, 21 May 2025 07:55:16 -0500 Subject: [PATCH 1/2] Identify common MSBuild files https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild --- identify/extensions.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/identify/extensions.py b/identify/extensions.py index 51f62b8..2c8380b 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -43,7 +43,7 @@ 'cr': {'text', 'crystal'}, 'crt': {'text', 'pem'}, 'cs': {'text', 'c#'}, - 'csproj': {'text', 'xml', 'csproj'}, + 'csproj': {'text', 'xml', 'csproj', 'msbuild'}, 'csh': {'text', 'shell', 'csh'}, 'cson': {'text', 'cson'}, 'css': {'text', 'css'}, @@ -82,6 +82,7 @@ 'fish': {'text', 'fish'}, 'fits': {'binary', 'fits'}, 'fs': {'text', 'f#'}, + 'fsproj': {'text', 'xml', 'fsproj', 'msbuild'}, 'fsx': {'text', 'f#', 'f#script'}, 'gd': {'text', 'gdscript'}, 'gemspec': {'text', 'ruby'}, @@ -200,7 +201,9 @@ 'pom': {'pom', 'text', 'xml'}, 'pp': {'text', 'puppet'}, 'prisma': {'text', 'prisma'}, + 'proj': {'text', 'xml', 'msbuild'}, 'properties': {'text', 'java-properties'}, + 'props': {'text', 'xml', 'msbuild'}, 'proto': {'text', 'proto'}, 'ps1': {'text', 'powershell'}, 'psd1': {'text', 'powershell'}, @@ -212,7 +215,7 @@ 'pxi': {'text', 'cython'}, 'py': {'text', 'python'}, 'pyi': {'text', 'pyi'}, - 'pyproj': {'text', 'xml', 'pyproj'}, + 'pyproj': {'text', 'xml', 'pyproj', 'msbuild'}, 'pyt': {'text', 'python'}, 'pyx': {'text', 'cython'}, 'pyz': {'binary', 'pyz'}, @@ -252,6 +255,7 @@ 'swiftdeps': {'text', 'swiftdeps'}, 'tac': {'text', 'twisted', 'python'}, 'tar': {'binary', 'tar'}, + 'targets': {'text', 'xml', 'msbuild'}, 'templ': {'text', 'templ'}, 'tex': {'text', 'tex'}, 'textproto': {'text', 'textproto'}, @@ -272,8 +276,8 @@ 'urdf': {'text', 'xml', 'urdf'}, 'v': {'text', 'verilog'}, 'vb': {'text', 'vb'}, - 'vbproj': {'text', 'xml', 'vbproj'}, - 'vcxproj': {'text', 'xml', 'vcxproj'}, + 'vbproj': {'text', 'xml', 'vbproj', 'msbuild'}, + 'vcxproj': {'text', 'xml', 'vcxproj', 'msbuild'}, 'vdx': {'text', 'vdx'}, 'vh': {'text', 'verilog'}, 'vhd': {'text', 'vhdl'}, From a604a3a4a4ec822f5082a21664fdf391f512d961 Mon Sep 17 00:00:00 2001 From: Taylor Buchanan Date: Fri, 23 May 2025 14:27:21 -0500 Subject: [PATCH 2/2] Drop ambiguous .proj extension --- identify/extensions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/identify/extensions.py b/identify/extensions.py index 2c8380b..bedf0e2 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -201,7 +201,6 @@ 'pom': {'pom', 'text', 'xml'}, 'pp': {'text', 'puppet'}, 'prisma': {'text', 'prisma'}, - 'proj': {'text', 'xml', 'msbuild'}, 'properties': {'text', 'java-properties'}, 'props': {'text', 'xml', 'msbuild'}, 'proto': {'text', 'proto'},