...
https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-6.0&tabs=windows
abc
def
Open your Visual Studio > right-click in your project > select the option “Manage User Secrets”
Note: I created this documentation with Visual Studio 2022Add this structure and run your project
Note: If you have this error when you run the project, maybe the structure of the keys is not correct.