If you want to add user secrets in a development environment without affecting the main configuration files, which tool or method would you typically use in an ASP.NET Core project?

  • Environment variables
  • Hardcode secrets directly in the code
  • Configuration files
  • User Secrets Manager or "dotnet user-secrets"
In ASP.NET Core, to add user secrets in a development environment without affecting the main configuration files, you would typically use the "User Secrets Manager" or the "dotnet user-secrets" command-line tool. This tool allows developers to store sensitive configuration data securely during development without checking them into source control. It's a best practice to separate secrets from code and configuration files.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *