Thank you skydiver.
For others to find later, looks like ConfigurationManager used in this way is deprecated, I switched to this technique:
Configuration.GetSection("appSettings")["marketWSS"], and used the appsettings.json instead.
Which involved the use of Dependency Injection (DI) in my...
Everything works on windows but when running inside a linux container the config is seemingly not being read, ConfigurationManager is returning empty values. Is the path different on linux?
c#, .net 5.0, up-to-date visual studio 2019, publishing with options Release / net5.0 / Self-contained /...
Were you able to get this working? Everything works for me when I compile and run on my Windows system, but when I compile and run inside a linux container the App.config is seemingly not being read. I tried also renaming to 'app.config' in case it might have been a case sensitive issue...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.