Skip to content

Commit d226767

Browse files
committedSep 6, 2024·
[修复]1. 修复map 协议报错导致的aot 裁剪报错
1 parent 0831f1d commit d226767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎ProtoExport/ProtoBuffServerHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
8282
{
8383
defaultValue = $" = new {operationField.Type}();";
8484
}
85-
85+
sb.AppendLine($"\t\t[ProtoMap(DisableMap = true)]");
8686
sb.AppendLine($"\t\tpublic {operationField.Type} {operationField.Name} {{ get; set; }}{defaultValue}");
8787
}
8888

0 commit comments

Comments
 (0)
Please sign in to comment.