XFEExtension.NetCore.ServerInteractive
[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFEExtension.NetCore.ServerInteractive.SourceGenerator/EntryPointGenerator.cs
+3
-6
XFEstudio/XFEExtension.NetCore.ServerInteractive
fix: resolve CS8602 warning in EntryPointGenerator path normalization
Agent-Logs-Url: https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive/sessions/5efc5b28-7ded-4bf7-ba0e-74ab99e97cf9 Co-authored-by: XFEstudio <132526994+XFEstudio@users.noreply.github.com>
f74be7e
代码差异
1 个文件
+3
-6
@@ -136,12 +136,9 @@ public class EntryPointGenerator : IIncrementalGenerator
136
136
137
137
foreach (var attr in entryPointAttributes)
138
138
{
139
var path = attr.ConstructorArguments.FirstOrDefault().Value?.ToString();
140
// 空路径或 "*" 均视为全匹配通配符
141
if (string.IsNullOrEmpty(path))
142
path = "*";
143
else
144
path = path.Trim('/');
139
var rawPath = attr.ConstructorArguments.FirstOrDefault().Value?.ToString();
140
// 空路径或 "*" 均视为全匹配通配符;非空路径去除首尾 '/' 以与运行时路由格式对齐
141
var path = string.IsNullOrEmpty(rawPath) ? "*" : rawPath!.Trim('/');
145
142
146
143
results.Add(new MethodCandidate(
147
144
containingType.ContainingNamespace.ToDisplayString(),