OpenTextSummarizer
OpenTextSummarizer copied to clipboard
App cannot find dics folder If I publish with produce single file option (.net Core)
The reason is in the Dictionary.cs file, locating app path with this way breaks
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase).Substring(6)
The correct way is Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName)
So the full line should be
string dictionaryFile = string.Format(@"{1}\dics\{0}.xml", DictionaryLanguage, Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName));