From 53f49b7c1a6662668f828ee1980dc5c618a1db10 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Thu, 6 Jul 2023 14:31:25 -0500 Subject: [PATCH 1/3] Suppress CS0067 --- .../Metadata/ToolkitSampleButtonCommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CommunityToolkit.Tooling.SampleGen/Metadata/ToolkitSampleButtonCommand.cs b/CommunityToolkit.Tooling.SampleGen/Metadata/ToolkitSampleButtonCommand.cs index b27f7375..bac34136 100644 --- a/CommunityToolkit.Tooling.SampleGen/Metadata/ToolkitSampleButtonCommand.cs +++ b/CommunityToolkit.Tooling.SampleGen/Metadata/ToolkitSampleButtonCommand.cs @@ -19,7 +19,9 @@ public ToolkitSampleButtonCommand(Action callback) } /// +#pragma warning disable CS0067 public event EventHandler? CanExecuteChanged; +#pragma warning restore CS0067 /// public bool CanExecute(object parameter) From e7cf9bb491bd1223869612bd462d73cbd9460a36 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Thu, 6 Jul 2023 15:12:42 -0500 Subject: [PATCH 2/3] Added missing file headers --- .../Helpers/InMemoryAdditionalText.cs | 4 ++++ .../Helpers/TestHelpers.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/InMemoryAdditionalText.cs b/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/InMemoryAdditionalText.cs index 45888822..daf743b4 100644 --- a/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/InMemoryAdditionalText.cs +++ b/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/InMemoryAdditionalText.cs @@ -1,3 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; diff --git a/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/TestHelpers.cs b/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/TestHelpers.cs index c94da675..c7c542d1 100644 --- a/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/TestHelpers.cs +++ b/CommunityToolkit.Tooling.SampleGen.Tests/Helpers/TestHelpers.cs @@ -1,3 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Immutable; From e8235f9b43a8971f1a60afc7144b7bcd63fa7950 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Fri, 7 Jul 2023 15:31:36 -0500 Subject: [PATCH 3/3] Run CI tests in Release mode --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a45e199d..5ccfb2cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: - name: dotnet build working-directory: ./ - run: dotnet build /bl CommunityToolkit.Tooling.sln + run: dotnet build /bl CommunityToolkit.Tooling.sln -p:Configuration=Release # Run tests - name: Install Testspace Module @@ -73,7 +73,7 @@ jobs: domain: ${{ github.repository_owner }} - name: Run tests against Source Generators - run: dotnet test --logger "trx;LogFileName=sourceGeneratorTestResults.trx" + run: dotnet test --logger "trx;LogFileName=sourceGeneratorTestResults.trx" -p:Configuration=Release - name: Create test reports run: |