config-transformation

app.config transformations not applying

故事扮演 提交于 2020-01-06 08:21:46
问题 I'm having an issue with app.config transformations using SlowCheeta not applying on publish. It always uses dbTable, not dbTableLive. app.config <connectionStrings> <add name="db2" connectionString="metadata=res://*/db2.csdl|res://*/db2.ssdl|res://*/db2.msl;provider=System.Data.SqlClient;provider connection string="data source=server;initial catalog=db2Table;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> <add name="db"

app.config transformations not applying

落花浮王杯 提交于 2020-01-06 08:21:03
问题 I'm having an issue with app.config transformations using SlowCheeta not applying on publish. It always uses dbTable, not dbTableLive. app.config <connectionStrings> <add name="db2" connectionString="metadata=res://*/db2.csdl|res://*/db2.ssdl|res://*/db2.msl;provider=System.Data.SqlClient;provider connection string="data source=server;initial catalog=db2Table;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> <add name="db"

Why are config transforms not applied when I manually publish a console app as an Azure webjob?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 09:15:47
问题 I have a console application that I am deploying to Azure as a Web Job. I do this manually from Visual Studio 2015 by right-clicking the project and choosing "Publish as Azure WebJob". I am now at a point where I need to deploy this app to several different environments (ex: dev, test, prod etc). In each environment the console app needs to run with different config settings. To get this done, I've installed Slow Cheetah v2.5.48 and setup multiple config transform files - one for each

SlowCheetah not transforming file on build

喜欢而已 提交于 2019-12-18 11:11:50
问题 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.

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