DEV Community

Discussion on: .NET 5 Console App with Dependency Injection, Serilog Logging, and AppSettings

Collapse
 
kvenda profile image
MyProjects • Edited

Thanks for a great post, and especially the video, which finally made a lot of this more understandable. FYI - I answered my own question, I needed to set the properties for appsettings.json to Copy if Newer. Orig Question: Q: how to reference the appsettings json file if it is in the project folder, not the bin/debug/net5/ folder (as with a typical scaffolded net 5 app). ?