[Solutions Explorer中的C#个自定义app.config文件

问题描述 投票:0回答:1

我有几个自定义app.config文件,它们直接指向我的Active Solutions配置。它们似乎工作正常,但是我添加的最后两个App.Davivienda.config和App.Futura.config不在App.config树下显示。它们工作正常,但是为什么不在那里显示?

enter image description here

c# app-config
1个回答
0
投票

打开.csproj文件并查看新文件创建的条目。

它们应该使用<DependentUpon>App.config</DependentUpon>标签创建。

如果没有,请更改.csproj,然后重新打开。

它们应该看起来像这样:

<Content Include="App.Futura.config">
    <DependentUpon>App.config</DependentUpon>
</Content>
© www.soinside.com 2019 - 2024. All rights reserved.