Skip to content

Commit 38728ba

Browse files
authored
Merge pull request #93 from CommunityToolkit/hotfix/samplegen
Release mode hotfix for SampleGen
2 parents a56089e + e8235f9 commit 38728ba

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: dotnet build
6666
working-directory: ./
67-
run: dotnet build /bl CommunityToolkit.Tooling.sln
67+
run: dotnet build /bl CommunityToolkit.Tooling.sln -p:Configuration=Release
6868

6969
# Run tests
7070
- name: Install Testspace Module
@@ -73,7 +73,7 @@ jobs:
7373
domain: ${{ github.repository_owner }}
7474

7575
- name: Run tests against Source Generators
76-
run: dotnet test --logger "trx;LogFileName=sourceGeneratorTestResults.trx"
76+
run: dotnet test --logger "trx;LogFileName=sourceGeneratorTestResults.trx" -p:Configuration=Release
7777

7878
- name: Create test reports
7979
run: |

CommunityToolkit.Tooling.SampleGen.Tests/Helpers/InMemoryAdditionalText.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
15
using Microsoft.CodeAnalysis;
26
using Microsoft.CodeAnalysis.Text;
37

CommunityToolkit.Tooling.SampleGen.Tests/Helpers/TestHelpers.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
15
using Microsoft.CodeAnalysis;
26
using Microsoft.VisualStudio.TestTools.UnitTesting;
37
using System.Collections.Immutable;

CommunityToolkit.Tooling.SampleGen/Metadata/ToolkitSampleButtonCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ public ToolkitSampleButtonCommand(Action callback)
1919
}
2020

2121
/// <inheritdoc />
22+
#pragma warning disable CS0067
2223
public event EventHandler? CanExecuteChanged;
24+
#pragma warning restore CS0067
2325

2426
/// <inheritdoc />
2527
public bool CanExecute(object parameter)

0 commit comments

Comments
 (0)