slow-cheetah
slow-cheetah copied to clipboard
Preview Transform not working for app.config
Environment: Win7 x64 VS2015 WPF application App.config Add Transform is done App.Debug.config and App.Release.config are generated and shown in solution explorer
No matter how I change the App.Debug.config or App.Release.config, the "Preview Transform" shows NO DIFF in the comparing window. Both sides are the same as App.config
Does the transform work on build? Is there any warnings regarding the transform on build?
The transform doesn't work on build too. It does nothing. There is no warning on build.
Hi, same problem with VS2017 , i had and trasformation for"App.config" I press "Add Transform" is done App.Debug.config and App.Release.config are generated and shown in solution Explorer, but is not apply anyone trasformation built time, i check in preview windows but two file are identical.
Same problem here.
@liarsing @sgrips @bdominguez
Maybe you made the same mistake as me.
<appSettings> <add key="xxxx" value="xxx" xdt:Transform="Replace" xdt:Locator="Match(key)"/> </appSettings>
xdt:Transform and xdt:Locator should never be lost in app.XXX.config.
@liarsing @sgrips @bdominguez Can you guys provide the source and transformation files? Or examples of files that do exhibit the same issue?
@shenzhigang I have no idea, how I missed it but thank you so much for pointing me in the right direction. When I included xdt:Transform and xdt:Locator in the app.XXX.config it worked like a charm.
For all others, please do not forget to add transform and locator as highlighted in bold below, otherwise you will not be able to see any differences in Preview Transform and also the changes will not be overwritten in the actual .config file after build in the respective build directory.
<add key="xxxx" value="xxx" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
Thanks once again.