Skip to content

Commit

Permalink
Source generated models should not scream on CS0618
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Aug 23, 2024
1 parent 2d3ff39 commit f151ece
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public override void WriteCodeElement(ClassDeclaration codeElement, LanguageWrit
if (codeElement.Parent?.Parent is CodeNamespace)
{
writer.WriteLine(AutoGenerationHeader);
writer.WriteLine("#pragma warning disable CS0618");
codeElement.Usings
.Where(x => (x.Declaration?.IsExternal ?? true) || !x.Declaration.Name.Equals(codeElement.Name, StringComparison.OrdinalIgnoreCase)) // needed for circular requests patterns like message folder
.Select(static x => x.Declaration?.IsExternal ?? false ?
Expand Down

0 comments on commit f151ece

Please sign in to comment.