dotnet / dotnet/aspnetcore

Question: Is C# project with multiple secrets.json files (i.e. UserSecretId values) supported?

Open
#52,909 2 comments 0 reactions 0 assignees View on GitHub
area-commandlinetools feature-user-secrets question
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

Hi there,

I have a C# solution with both an ASP.NET Core application project and a test project. I want the test project to use the same `secrets.json` file as the web-app project but also in addition a _separate, second_ `secrets.json` file (for Git change control and other reasons) with test-specific configuration. (Neither `secrets.json` file contains configuration suitable for the open-source repo containing the solution, hence the use of the ASP.NET Core secrets manager.)

Is is possible to for me to specify two `UserSecretId` values in the same project (`.csproj`) file to allow use of two `secrets.json` files and is this a supported scenario?

BR,
Mark

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.