Nuget包config.transform不更新appSettings - Nuget package config.transform not updating appSettings -开发者知识库
I created a local Nuget feed and created a package with one dll and a web.config.transform file. The web config transform file looks like this:
我創建了一個本地Nuget feed並創建了一個包含一個dll和一個web.config.transform文件的包。 Web配置轉換文件如下所示:
<appSettings>
<add key="adBasePath" value="somestring" />
<add key="adGroupPath" value="anotherstring" />
</appSettings>
When I install the package, it doesn't update the appSettings section with these entries, it adds them to the configuration section.
當我安裝軟件包時,它不會使用這些條目更新appSettings部分,而是將它們添加到配置部分。
What am I missing
我錯過了什么
1 个解决方案
#1
1
Ok. I figured it out. I needed to do this:
好。我想到了。我需要這樣做:
<configuration>
<appSettings>
<add key="adBasePath" value="somestring" />
<add key="adGroupPath" value="anotherstring" />
</appSettings>
</configuration>
最佳答案:
本文经用户投稿或网站收集转载,如有侵权请联系本站。
0条回复