From dfbed35179e946e992191ed284605bb49ee7b92f Mon Sep 17 00:00:00 2001 From: Nirmal Guru Date: Thu, 13 Oct 2022 20:52:49 +0530 Subject: [PATCH] Fix Code Style issues on Build There are 3 issues at play here: 1. XAML files placed inside C# files, leading to dotnet rules not applying to C# files. 2. Code style analyzer not matching the compiler's version. 3. Unrelated but warning for missing Appx bundling platforms appears for a sample UWP project. This patch fixes all of that. --- .editorconfig | 6 +++--- Directory.Build.props | 8 ++++---- .../ComputeSharp.SwapChain.Uwp.csproj | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index 970c11d2..918a5dea 100644 --- a/.editorconfig +++ b/.editorconfig @@ -41,13 +41,13 @@ indent_size = 2 indent_size = 2 insert_final_newline = true -# C# files -[*.cs] - # XAML files [*.xaml] indent_size = 4 +# C# files +[*.cs] + #### .NET Coding Conventions #### # this. and Me. preferences diff --git a/Directory.Build.props b/Directory.Build.props index b073dd54..1e45a37a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,11 +6,11 @@ strict true $(NoWarn);MSB3270 - true + @@ -38,7 +38,7 @@ - + true $([System.Text.RegularExpressions.Regex]::Match($(GITHUB_REF_NAME), $(ReleaseVersionParsingRegex)).Groups[1].Value) $([System.Text.RegularExpressions.Regex]::Match($(GITHUB_REF_NAME), $(ReleaseVersionParsingRegex)).Groups[2].Value) @@ -59,7 +59,7 @@ https://github.com/Sergio0694/ComputeSharp/ git true - https://github.com/Sergio0694/ComputeSharp/ + https://github.com/Sergio0694/ComputeSharp/ Sergio Pedri Sergio Pedri Sergio Pedri @@ -72,7 +72,7 @@ true - + diff --git a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj index 9b937baa..d5a9e116 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj +++ b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj @@ -18,6 +18,7 @@ {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} true false + x64;ARM64 true @@ -252,7 +253,7 @@ powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File $(SolutionDir)\build\CreateBlankAppCenterToken.ps1 -