appsettings.Json我有一个 dotnet 应用程序,我需要从两个相对路径(常规, appsettings.Development.json)以及绝对路径中提取配置/config/appsettings.json。我找不到办法做到这一点。从文档中,路径 arg 是Path relative to the base path stored in Properties of builder.如何将其设置为从绝对路径读取配置/config/filename.json?
动机:我正在对 dotnet 应用程序进行 docker 化,因此我计划保留在常规部署和部署特定配置之间通常不会更改的配置(这是我将在部署时安装在容器上的卷)。publish/appsettings.json/config/appsettings.json