Skip to content

Commit

Permalink
Suppress CA2252 related warnings (#7846)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashanth Govindarajan authored Sep 8, 2021
1 parent 89db4b3 commit 74201f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.DotNet.GenFacades/SourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public bool GenerateSource(

StringBuilder sb = new StringBuilder();
sb.AppendLine("// <auto-generated/>"); // Adding this because the following code is autogenerated.
sb.AppendLine("#pragma warning disable CS0618"); // Adding this to avoid warnings while adding typeforwards for obselete types.
sb.AppendLine("#pragma warning disable CS0618,CA2252"); // Adding this to avoid warnings while adding typeforwards for obselete types. CA2252 suppresses warnings on preview APIs

bool result = true;

Expand Down

0 comments on commit 74201f3

Please sign in to comment.