Skip to content

Commit 9703476

Browse files
authored
Merge pull request #251 from vicenteyu/Branch_disable_xml_1591_warning
禁用 XML注释 警告
2 parents bc7f421 + 53c4826 commit 9703476

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WebApiClientCore.Analyzers.SourceGenerator/HttpApiCodeBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public override string ToString()
9595
{
9696
builder.AppendLine(item);
9797
}
98+
builder.AppendLine($"#pragma warning disable 1591");
9899
builder.AppendLine($"namespace {this.Namespace}");
99100
builder.AppendLine("{");
100101
builder.AppendLine($"\t[HttpApiProxyClass(typeof({this.HttpApiTypeName}))]");
@@ -120,6 +121,7 @@ public override string ToString()
120121

121122
builder.AppendLine("\t}");
122123
builder.AppendLine("}");
124+
builder.AppendLine("#pragma warning restore 1591");
123125

124126
// System.Diagnostics.Debugger.Launch();
125127
return builder.ToString();

0 commit comments

Comments
 (0)