We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddbce91 commit c88dbd3Copy full SHA for c88dbd3
src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/ComInterfaceGenerator.cs
@@ -169,6 +169,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
169
170
using StringWriter source = new();
171
source.WriteLine("// <auto-generated />");
172
+ source.WriteLine("#pragma warning disable CS0612, CS0618"); // Suppress warnings about [Obsolete] member usage in generated code.
173
interfaceInfo.WriteTo(source);
174
// Two newlines looks cleaner than one
175
source.WriteLine();
0 commit comments