Open abc-rpg opened 3 months ago
Seems reasonable, if not urgent, to me. @captainsafia?
@abc-rpg In the meantime, have you tried using a symlink so the files don't get out of sync?
@amcasey It would not work in my case, since the appsettings.Development.json
is used in a development cloud environment (so it has the proper settings).
So currently, after using the dotnet-user-jwts tool, I copy the settings into the appsettings.Local.json
and then revert the values in the appsettings.Development.json
.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I want to be able to use
dotnet-user-jwts
in a project that does not useappsettings.Development.json
for local development. In some cases for instance, it isappsettings.Local.json
.Although it is easy to copy it into another appsettings file, it's an inconvenience since previous data gets overwritten.
Describe the solution you'd like
The current behavior can be overriden by an optional argument.
Option 1: An argument to specify appsettings file
Option 2: An argument to specify environment, then infer the file name (
appsettings.{env}.json
)Option 3: Skip writing to the appsettings file, and output the configuration to the console instead, for manual copying.
I did not think too much about naming, as I would like to see if there is interest in this.
Additional context
There was a very brief mention of the idea of disabling the configuration in the issue here https://github.com/dotnet/aspnetcore/issues/46239, but in a different context.