Skip to content

dotnet user-secrets init should support file-based apps #63497

@jjonescz

Description

@jjonescz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions