C
C#4mo ago
mellowzippy

✅ ASP.NET 'web' application

My exercise says the following: The path of the folder where we store the addresses should be customized: extend your program to read it from the appsettings.. I think I should just make the path (which is a json file) an environment variable in the appsettings. Does that make sense to do or should I just ask the teacher? If there are any other options that might work with the use of appsettings then please tell me.
5 Replies
mellowzippy
mellowzippyOP4mo ago
Yeah but you should be able to make environment variables in the appsettings right?
Pobiega
Pobiega4mo ago
App settings is one of many sources that all combine into the built in configuration system used in Asp.net So if it's env vars, or appsettings.json, you still consume the value the same way
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
mellowzippy
mellowzippyOP4mo ago
We didnt use JS, I used IConfiguration $close
MODiX
MODiX4mo ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?