.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

All asp.net core code commands · .NET and ASP.NET Core 10 cheatsheet

Was this page helpful?