dotnet / dotnet/aspnetcore

`dotnet user-secrets init` should support file-based apps

Open
#63,497 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.