.NET and ASP.NET Core 10 · ASP.NET Core code
Store a development secret
Save a secret value without putting it in appsettings.json. Use your own value.
dotnet user-secrets set "ConnectionStrings:Default" "Host=localhost;Database=app;Username=app;Password=change-me"
Official .NET and ASP.NET Core 10 documentation
More asp.net core code commands
- Write a minimal API
- Register a service
- Read configuration
- Set up user secrets
- Add authentication and authorization
- Map controllers
All asp.net core code commands · .NET and ASP.NET Core 10 cheatsheet