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.
Loading...
Related Quiz
- Which part of the MVC pattern is primarily concerned with how the application's data is represented and manipulated?
- You've heard about "middleware" in ASP.NET Core and learned that there's one for serving static content. What does this middleware help your web application do?
- One core feature of ASP.NET Core Identity is the ability to provide _________-factor authentication.
- What is the significance of the @model directive in a Razor view?
- When defining an attribute route, which of the following attributes would you use to specify a route for an action method?