From 9a41eded2d5c7998eb09501225ea6865507f96e4 Mon Sep 17 00:00:00 2001 From: bdovaz Date: Sat, 29 Jul 2023 17:06:49 +0200 Subject: [PATCH] chore: house keeping --- .editorconfig | 5 +- .../UnityNuGet.Server.csproj | 53 +++++++++-------- src/UnityNuGet.Tests/.editorconfig | 4 ++ src/UnityNuGet.Tests/UnityNuGet.Tests.csproj | 29 ++++----- src/UnityNuGet/UnityMeta.cs | 6 +- src/UnityNuGet/UnityNuGet.csproj | 59 ++++++++++--------- 6 files changed, 83 insertions(+), 73 deletions(-) create mode 100644 src/UnityNuGet.Tests/.editorconfig diff --git a/.editorconfig b/.editorconfig index 51b8bb31..bef1b331 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,4 +2,7 @@ root = true [*.{cs,json,txt,yml}] -end_of_line = lf \ No newline at end of file +end_of_line = lf + +[*.{csproj}] +indent_size = 2 \ No newline at end of file diff --git a/src/UnityNuGet.Server/UnityNuGet.Server.csproj b/src/UnityNuGet.Server/UnityNuGet.Server.csproj index 1756326f..c2b641e2 100644 --- a/src/UnityNuGet.Server/UnityNuGet.Server.csproj +++ b/src/UnityNuGet.Server/UnityNuGet.Server.csproj @@ -1,33 +1,34 @@ - + - - net7.0 - enable - /subscriptions/b6745039-70e7-4641-994b-5457cb220e2a/resourcegroups/Default-ApplicationInsights-EastUS/providers/microsoft.insights/components/unitynuget-registry - /subscriptions/b6745039-70e7-4641-994b-5457cb220e2a/resourcegroups/Default-ApplicationInsights-EastUS/providers/microsoft.insights/components/unitynuget-registry - 1be0a769-8d75-4a27-99e0-128afcc0ffee - + + net7.0 + enable + /subscriptions/b6745039-70e7-4641-994b-5457cb220e2a/resourcegroups/Default-ApplicationInsights-EastUS/providers/microsoft.insights/components/unitynuget-registry + /subscriptions/b6745039-70e7-4641-994b-5457cb220e2a/resourcegroups/Default-ApplicationInsights-EastUS/providers/microsoft.insights/components/unitynuget-registry + 1be0a769-8d75-4a27-99e0-128afcc0ffee + true + - - . - ..\..\Dockerfile - Linux - + + . + ..\..\Dockerfile + Linux + - - - - - - - + + + + + + + - - - + + + - - - + + + diff --git a/src/UnityNuGet.Tests/.editorconfig b/src/UnityNuGet.Tests/.editorconfig new file mode 100644 index 00000000..97faf8d9 --- /dev/null +++ b/src/UnityNuGet.Tests/.editorconfig @@ -0,0 +1,4 @@ +[*.cs] + +# SYSLIB1045: Convert to 'GeneratedRegexAttribute'. +dotnet_diagnostic.SYSLIB1045.severity = none diff --git a/src/UnityNuGet.Tests/UnityNuGet.Tests.csproj b/src/UnityNuGet.Tests/UnityNuGet.Tests.csproj index 778d4737..9e05d850 100644 --- a/src/UnityNuGet.Tests/UnityNuGet.Tests.csproj +++ b/src/UnityNuGet.Tests/UnityNuGet.Tests.csproj @@ -1,19 +1,20 @@ - + - - net7.0 - false - false - + + net7.0 + false + false + true + - - - - - + + + + + - - - + + + \ No newline at end of file diff --git a/src/UnityNuGet/UnityMeta.cs b/src/UnityNuGet/UnityMeta.cs index 2b564f9d..f43a3429 100644 --- a/src/UnityNuGet/UnityMeta.cs +++ b/src/UnityNuGet/UnityMeta.cs @@ -16,11 +16,11 @@ internal static class UnityMeta { case ".pdb": break; - + case ".asmdef": case ".json": - case ".xml": - case ".txt": case ".md": + case ".txt": + case ".xml": return GetMetaForText(guid); } diff --git a/src/UnityNuGet/UnityNuGet.csproj b/src/UnityNuGet/UnityNuGet.csproj index c24eba35..4a432f9a 100644 --- a/src/UnityNuGet/UnityNuGet.csproj +++ b/src/UnityNuGet/UnityNuGet.csproj @@ -1,35 +1,36 @@ - + - - net7.0 - enable - 0.14.0 - 9.0 - + + net7.0 + enable + 0.14.0 + 9.0 + true + - - - + + + - - - PreserveNewest - - - - - - + + + PreserveNewest + + - - - - - - - - - - + + + + + + + + + + + + + +