Blazor WASM config file+other providers updates#18127
Conversation
captainsafia
left a comment
There was a problem hiding this comment.
Oof! Thanks for following up on the user feedback here, Luke.
Your point in the other comment about us linking to the ASP.NET docs on configuration providers being too catch all is prudent.
ASP.NET does not require that you can SetBasePath on the ConfigurationBuilder before requesting files via a relative path, so our configuration differs in this way.
The example using HTTPClient works. I'll see if I can cook something up to extract files from non-wwwroot directorie (if that's possible).
|
I think temporarily that we should tone down this idea about sending readers to that topic ... I mean until we can say which ones work OOB with WASM. I'll open an issue to address it further, but I'm going to make it a P2 (Medium) given all of the work I have on my plate for the next few weeks (e.g., security ... let's see .......... security ........ and uh ... oh, yeah! I almost forgot .... SECURITY! 😄).
If you come up with anything, I'll have an 👁️ out for your issue. |
|
Ok, I opened #18134 to work on it later. |
Fixes #18088
Thanks @paul-wade 🎸 and @conficient 🎷!
This fixes an obvious blunder where I had paragraphs at first (
<p>) for example output then switched to list items (<li>) but didn't get all of the tags updated. I was rushing and didn't test. The IDE would have issued an instant 💀 death threat 💀 for that. Anyway ...Although I wasn't asked to show loading a non-default app settings file, 🤔 I think we have to have it. Devs are very likely going to want to have other config files and want them to ✨ Just Work!™️ ✨. Without being able to just toss a File Configuration Provider in there, they'll be stuck and wondering how to do it. Therefore, I tack on a brief example at the end of the section on this PR. Thanks again @conficient ... nice bit there.
Another problem here that's unresolved on the PR is that we're saying, 'Just go over to the ASP.NET Core Fundamentals > Configuration Provider topic and use anything you like.' Well ... Nope! 😄 ... That's just not true. Two options:
How shall we proceed?