C
C#3mo 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
mellowzippyOP3mo ago
Yeah but you should be able to make environment variables in the appsettings right?
Pobiega
Pobiega3mo 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 User3mo ago
Message Not Public
Sign In & Join Server To View
mellowzippy
mellowzippyOP3mo ago
We didnt use JS, I used IConfiguration $close
MODiX
MODiX3mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server