Skip to content

Commit

Permalink
Make sure to select the right IAnalyzerResult from Buildalyzer
Browse files Browse the repository at this point in the history
Fixes #1899
  • Loading branch information
0xced committed Feb 10, 2022
1 parent c19bc08 commit b477c10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private IAnalyzerResult SelectAnalyzerResult(IAnalyzerResults analyzerResults, s
{
if (targetFramework == null)
{
return analyzerResults.First();
return analyzerResults.First(e => e.TargetFramework != null);
}

var analyzerResultForFramework = analyzerResults.SingleOrDefault(result => result.TargetFramework == targetFramework);
Expand Down

0 comments on commit b477c10

Please sign in to comment.