config-transformation

How can I enable “Treat Warnings as Errors” for my TransformXml task?

那年仲夏 提交于 2019-12-10 15:39:01
问题 I'm using the following (heavily simplified) MSBuild script: <?xml version="1.0"?> <Project DefaultTargets="Transform" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll" /> <Target Name="Transform"> <TransformXml Source="../web.config" Transform="Config\Production\webapp.xml" Destination="Config\Build\Production\web.config" /> </Target> <

How do I change an web.config setting using transformation syntax?

蹲街弑〆低调 提交于 2019-12-03 11:02:23
问题 I have a value stored in my web.config file that I would like to change when the site is published. I want to change it from TEST to LIVE. <appSettings> <add key="RequestMode" value="TEST" /> // other keys here </appSettings> Is this possible using web.config transformation syntax? If so, how? Thanks. 回答1: Yes this is possible with transformation syntax. This transformation should do the trick: <?xml version="1.0" encoding="utf-8"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML

How do I change an web.config setting using transformation syntax?

扶醉桌前 提交于 2019-12-03 02:34:16
I have a value stored in my web.config file that I would like to change when the site is published. I want to change it from TEST to LIVE. <appSettings> <add key="RequestMode" value="TEST" /> // other keys here </appSettings> Is this possible using web.config transformation syntax? If so, how? Thanks. Yes this is possible with transformation syntax. This transformation should do the trick: <?xml version="1.0" encoding="utf-8"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <appSettings> <add key="RequestMode" value="LIVE" xdt:Transform="SetAttributes" xdt

SlowCheetah not transforming file on build

无人久伴 提交于 2019-11-30 01:27:26
I have a project I am trying to use SlowCheetah for. I have created my config file (Test.web.config) and all the transformations I want to use (Debug_Mock.config, Debug_SQL.config, Release) in my Build configuration I have a post-build event is supposed to copy the transformed file into another directory but the file cannot be found (error xcopy exited with code 4) SlowCheetah doesn't seem to be transforming the file and placing it in the output directory (bin folder) like I would expect. Does anyone have any ideas as to why it is not happening, maybe a setting somewhere? FYI: This process

工具导航Map