From 879a07cbbb13b7a5667ed0854f2fb9fc2d75d35d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 14 Feb 2021 21:34:37 -0600 Subject: move xml doc file definition --- src/slskd/Startup.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index 7c71a7ec..39b81eea 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -52,7 +52,6 @@ namespace slskd /// public class Startup { - private static readonly string XmlDocFile = Path.Combine(AppContext.BaseDirectory, Program.AppName + ".xml"); private static readonly int MaxReconnectAttempts = 3; private static int currentReconnectAttempts = 0; @@ -165,13 +164,13 @@ namespace slskd Version = "v0", }); - if (System.IO.File.Exists(XmlDocFile)) + if (System.IO.File.Exists(Program.DefaultXmlDocumentaitonFile)) { - options.IncludeXmlComments(XmlDocFile); + options.IncludeXmlComments(Program.DefaultXmlDocumentaitonFile); } else { - logger.Warning($"Unable to find XML documentation in {XmlDocFile}, Swagger will not include metadata"); + logger.Warning($"Unable to find XML documentation in {Program.DefaultXmlDocumentaitonFile}, Swagger will not include metadata"); } }); } -- cgit v1.2.3