Skip to content

Commit b1626a7

Browse files
committed
Work around dotnet/wpf#6792
1 parent 13af5b5 commit b1626a7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,14 @@
115115
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
116116
<Exec Command="taskkill /f /fi &quot;IMAGENAME eq Flow.Launcher.exe&quot;" />
117117
</Target>
118+
119+
<Target Name="RemoveDuplicateAnalyzers" BeforeTargets="CoreCompile">
120+
<!-- Work around https://github.com/dotnet/wpf/issues/6792 -->
121+
122+
<ItemGroup>
123+
<FilteredAnalyzer Include="@(Analyzer->Distinct())" />
124+
<Analyzer Remove="@(Analyzer)" />
125+
<Analyzer Include="@(FilteredAnalyzer)" />
126+
</ItemGroup>
127+
</Target>
118128
</Project>

global.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.300"
3+
"version": "6.0.*",
4+
"rollForward": "latestPatch"
45
}
56
}

0 commit comments

Comments
 (0)