PS C:\Users\huang_jianhua0101\source\repos\asp.-net-core-8\ConfigurationExample\ConfigurationExample> $Env:weatherapi__ClientID="ClientID from Env"
PS C:\Users\huang_jianhua0101\source\repos\asp.-net-core-8\ConfigurationExample\ConfigurationExample> dotnet run --no-launch-profile
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Users\huang_jianhua0101\source\repos\asp.-net-core-8\ConfigurationExample\ConfigurationExample
Gitee获取源码: