diff --git a/src/Yamlify.SourceGenerator/YamlSourceGenerator.cs b/src/Yamlify.SourceGenerator/YamlSourceGenerator.cs index acca357..50a6c68 100644 --- a/src/Yamlify.SourceGenerator/YamlSourceGenerator.cs +++ b/src/Yamlify.SourceGenerator/YamlSourceGenerator.cs @@ -333,6 +333,7 @@ private static string GenerateContextSource(ContextToGenerate ctx, Compilation c sb.AppendLine("// This file was generated by Yamlify.SourceGenerator."); sb.AppendLine("// It is AOT-compatible and uses no reflection at runtime."); sb.AppendLine("#nullable enable"); + sb.AppendLine("#pragma warning disable"); sb.AppendLine(); sb.AppendLine("using System;"); sb.AppendLine("using System.Collections.Generic;");