How to use the new VS 2010 configuration transforms and apply them to other .config files?
Posted
by Wallace
on Stack Overflow
See other posts from Stack Overflow
or by Wallace
Published on 2010-05-11T14:31:33Z
Indexed on
2010/05/11
16:34 UTC
Read the original article
Hit count: 306
I have setup some configuration transforms in my web.config for my connectionStrings, etc. But I have separated out some areas of my web.config into separate files, ex) appSettings.config.
How can I configure Visual Studio and MSBuild to perform config transformations on these additional config files?
I have already followed the approach of the web.config to relate the files together within my web application project file, but transformations are not automatically applied.
<ItemGroup>
<Content Include="appSettings.Debug.config">
<DependentUpon>appSettings.config</DependentUpon>
</Content>
</ItemGroup>
© Stack Overflow or respective owner