Skip to content

Commit 2954a54

Browse files
authored
Updating with target to cleanup analyzers (#2781)
* Updating with target to cleanup analyzers * Adding missing solution file change
1 parent b2dec34 commit 2954a54

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.github/actions/build-and-test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
dotnet-version: |
2020
3.1.x
2121
5.x
22-
6.0.301
22+
6.x
2323
env:
2424
NUGET_AUTH_TOKEN: ${{ inputs.nugetToken }}
2525

Directory.Build.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<Target Name="MaterialDesign_RemoveDuplicateAnalyzers" BeforeTargets="CoreCompile">
3+
<ItemGroup>
4+
<FilteredAnalyzer Include="@(Analyzer->Distinct())" />
5+
<Analyzer Remove="@(Analyzer)" />
6+
<Analyzer Include="@(FilteredAnalyzer)" />
7+
</ItemGroup>
8+
</Target>
9+
</Project>

MaterialDesignToolkit.Full.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
3030
.editorconfig = .editorconfig
3131
Scripts\BuildNugets.ps1 = Scripts\BuildNugets.ps1
3232
Directory.Build.props = Directory.Build.props
33+
Directory.Build.targets = Directory.Build.targets
3334
Directory.packages.props = Directory.packages.props
3435
global.json = global.json
3536
MaterialDesignColors.nuspec = MaterialDesignColors.nuspec

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.301",
4-
"rollForward": "disable"
3+
"version": "6.0.300",
4+
"rollForward": "latestMinor"
55
}
66
}

0 commit comments

Comments
 (0)