Skip to content

Commit

Permalink
Exclude inboxed analyzers from VerifyClosure task (#7624)
Browse files Browse the repository at this point in the history
As per https://github.com/dotnet/designs/blob/main/accepted/2021/InboxSourceGenerators.md
inboxed source generators are placed under ref/ folder, and need to be
excluded from RuntimePack reference check.

Fixes broken build dotnet/windowsdesktop#1803
  • Loading branch information
RussKie authored Jul 15, 2021
1 parent 6b1251c commit a311590
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@

<ItemGroup Condition="'$(PlatformPackageType)' == 'RuntimePack'">
<IgnoredReference Include="@(RuntimePackAsset->'%(FileName)')" />
<!-- Ignore inboxed analyzers -->
<IgnoredReference Include="@(Reference->'%(FileName)')"
Condition="$([System.String]::Copy('%(FullPath)').IndexOf('analyzers')) > 0"/>
</ItemGroup>

<ItemGroup Condition="'$(PlatformPackageType)' == 'TargetingPack'">
Expand Down

0 comments on commit a311590

Please sign in to comment.