From 53c4826f1e825c4403ff9a2b2cb333f7237f9d1b Mon Sep 17 00:00:00 2001 From: "Vicente.Yu" <^@^> Date: Tue, 21 May 2024 11:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8=20XML=E6=B3=A8=E9=87=8A=20?= =?UTF-8?q?=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vicente.Yu <^@^> --- .../HttpApiCodeBuilder.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WebApiClientCore.Analyzers.SourceGenerator/HttpApiCodeBuilder.cs b/WebApiClientCore.Analyzers.SourceGenerator/HttpApiCodeBuilder.cs index e84770be..1e176da3 100644 --- a/WebApiClientCore.Analyzers.SourceGenerator/HttpApiCodeBuilder.cs +++ b/WebApiClientCore.Analyzers.SourceGenerator/HttpApiCodeBuilder.cs @@ -95,6 +95,7 @@ public override string ToString() { builder.AppendLine(item); } + builder.AppendLine($"#pragma warning disable 1591"); builder.AppendLine($"namespace {this.Namespace}"); builder.AppendLine("{"); builder.AppendLine($"\t[HttpApiProxyClass(typeof({this.HttpApiTypeName}))]"); @@ -120,6 +121,7 @@ public override string ToString() builder.AppendLine("\t}"); builder.AppendLine("}"); + builder.AppendLine("#pragma warning restore 1591"); // System.Diagnostics.Debugger.Launch(); return builder.ToString();