【发布时间】:2021-10-08 12:00:11
【问题描述】:
我想在我的发布文件夹中发布特定的 appsettings json。
在我的 .csproj 文件中,我有这个
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="appsettings.Staging.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Settings.job">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
我有两个发布配置文件(本地/Azure)。
在我的本地文件夹中,一切正常
但是当我在 Azure 上发布时,我无法获得正确的文件:
我做错了什么?
更多信息:
Azure 环境设置:
项目中的文件属性:
【问题讨论】:
标签: azure visual-studio .net-core publishing