标签:添加 eof 成功 没有 exist XML help 访问 list
private static List<string> GetXmlCommentsPath() { List<string> docs = new List<string>(); var modules = AbpModule.FindDependedModuleTypesRecursivelyIncludingGivenModule(typeof(AbpZeroTemplateWebApiModule)); var baseDirectory = AppDomain.CurrentDomain.BaseDirectory; foreach (var module in modules) { var commentsFileName = module.Assembly.GetName().Name + ".XML"; var commentsFile = Path.Combine(baseDirectory, "bin", commentsFileName); docs.Add(commentsFile); } return docs; //return String.Format(@"{0}\bin\SwaggerUi.XML", System.AppDomain.CurrentDomain.BaseDirectory); }
public class SwaggerDocHelper { public static void ConfigXmlCommentsPath(SwaggerDocsConfig config, List<string> docs) { foreach (var doc in docs) { if (FileUtils.IsFileExists(doc)) { config.IncludeXmlComments(doc); } } config.ResolveConflictingActions(apiDescriptions => apiDescriptions.First()); } }
标签:添加 eof 成功 没有 exist XML help 访问 list
原文地址:http://www.cnblogs.com/sessionliang/p/6688213.html