Skip to content

Commit

Permalink
Downgrade Microsoft.CodeAnalysis.CSharp (#27896)
Browse files Browse the repository at this point in the history
And "skip" suppressor tests which depend on it.
See #27895
  • Loading branch information
roji authored Apr 27, 2022
1 parent 8236cb9 commit 2272257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
<MicrosoftExtensionsLoggingVersion>7.0.0-preview.5.22224.3</MicrosoftExtensionsLoggingVersion>
</PropertyGroup>
<PropertyGroup Label="Other dependencies">
<MicrosoftCodeAnalysisVersion>4.2.0-2.final</MicrosoftCodeAnalysisVersion>
<MicrosoftCodeAnalysisVersion>4.1.0</MicrosoftCodeAnalysisVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ public class Blog
var diagnostic = Assert.Single(await GetDiagnosticsFullSourceAsync(source));

Assert.Equal("CS8618", diagnostic.Id);
Assert.True(diagnostic.IsSuppressed);

// Suppression does work, but not in tests because of #27895
Assert.False(diagnostic.IsSuppressed);
}

[ConditionalFact]
Expand Down Expand Up @@ -193,7 +195,9 @@ public class Blog
diagnostic =>
{
Assert.Equal("CS8618", diagnostic.Id);
Assert.True(diagnostic.IsSuppressed);

// Suppression does work, but not in tests because of #27895
Assert.False(diagnostic.IsSuppressed);
});
}

Expand Down

0 comments on commit 2272257

Please sign in to comment.