`dotnet user-secrets init` should support file-based apps
Open
area-commandlinetools
feature-user-secrets
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
`dotnet user-secrets init --file app.cs` should add `#:property UserSecretsId=...` to the top of the C# file. Similarly how `dotnet package add` and similar command work. We might need to publish the `#:` directive manipulation utilities as internal source-only package to share the logic.
Contributor guide
Assessment
This issue has not been assessed yet.