On my dev machine I store connection strings
in all of my Appsettings{environment}.json
files.
When I have some kind of problem in Production
environment I change the launch.settings
file to Production
and then I can debug the solution using Production
database.
I would like to move some credentials keys from my Appsettings
files and store them in UserSecret
on my dev machine.
From my understanding the UserSecret
doesn't support UserSecret{environment}.json
like appsettings
does.
Does .Net Core support User Secrets per environment?
So how can I use UserSecret
on my local machine but yet keep the ability to change the connection string when environment changes in LaunchSettings
?