AspNetCore.Docs
AspNetCore.Docs copied to clipboard
Warning for user secrets when GenerateAssemblyInfo set to false in the project
Description
Please insert a warning in the documentation, that in case the generation of assembly info attributes is disabled via GenerateAssemblyInfo, in order to use the user secrets, a developer must manually add the UserSecretsIdAttribute.
I spent some times to figure out why the user secrets was not load in development environment, and discovered that the AddUserSecrets method relies on this attribute in order to load parameters.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-8.0&tabs=windows
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/app-secrets.md
Document ID
ba688ac2-e90e-fce5-f60d-40c2553c3efd
Article author
@tdykstra