Questions tagged [config-transformation]

53 questions
30
votes
7 answers

SlowCheetah not transforming file on build

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…
21
votes
4 answers

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

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. // other keys here Is this…
dotnetnoob
  • 9,233
  • 17
  • 51
  • 92
20
votes
1 answer

Context menu does not display "add transform" in console job when using slow cheetah

I assume this is a simple fix considering I don't see any other posts about others having this issue. I am using VS2012 and I added slowcheetah 2.5.10.3 to the project using the nuget package installer. I have tried opening a new console…
9
votes
4 answers

Automated Slow Cheetah Build methods

I don't want to install Slow Cheetah on all the build servers. We are using Slow Cheetah for config transformations and it is working perfectly fine. It generates multiple app.config files and we make changes to them as desired. We have setup…
8
votes
2 answers

SlowCheetah: Transformed files from class library project not copied to the referenced projects

Scenario: I have a class library project with custom .config files. Build Action for these config files are set to 'Content' and 'Copy Always'. This library project is then referenced in at least 4-5 console applications within the same solution.…
Tony Stark
  • 771
  • 6
  • 21
7
votes
4 answers

Remove section in web.config file in debug mode

I have an asp.net application, which must run under SSL, and it has some rewrite rules defined in web.config to accomplish this. ....
bzamfir
  • 4,328
  • 10
  • 51
  • 85
6
votes
2 answers

How to trigger only web.config transformations via batch command in Jenkins

I am setting up a Jenkins server to build .NET projects. We our using the visual studio Web.config transformations to transform our config files for each environment (Dev1, Dev2, QA, and Release). I am using the following command line arguments in…
5
votes
1 answer

Web.config transformation and search and replace

I need to switch out an IP address in multiple WCF services in web.config. With web.config transformation, is there any way, besides specifying each an every address by xpath, to create a search and replace statement. E.g. switch out IP address…
jaspernygaard
  • 2,852
  • 4
  • 31
  • 47
5
votes
1 answer

Play Framework - How to maintain configuration files for different environments?

For my Play 2.2/Scala application (built with SBT), I would like to deploy different configuration files depending on the environment I'm deploying to (e.g. to couple a deployment with a particular database server). How does one create different…
aknuds1
  • 57,609
  • 57
  • 177
  • 299
4
votes
1 answer

Use Continuous Integration to modify .NET project file

We have two code bases for testing and production. The only differences between these two code bases are in two files: The config file The build file (.csproj) Maintaining two branches is a considerable effort which could be eliminated by merging…
chiccodoro
  • 13,709
  • 16
  • 83
  • 129
4
votes
1 answer

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

I'm using the following (heavily simplified) MSBuild script:
Steve Rukuts
  • 8,609
  • 3
  • 43
  • 67
3
votes
1 answer

How to transform mailSettings in web.config, without having credentials in source control

I have a web app that I deploy to an Azure App Service, using VSTS. So far, I have managed to successfully use config transforms and variable substitutions to be able to not have any sensitive information in source control, but I can't get my head…
3
votes
1 answer

slowcheetah not working for app.config

Im using slowcheetah to transform my web.config file for various environments and this all works as expected. I want to do the same on app.config files but despite having slowcheetah available for these projects, when I right click on the…
3
votes
2 answers

Winforms ClickOnce publish fails with app.config transforms

I added app.config transforms to an existing Windows Forms client application that uses ClickOnce publishing, and now it will not publish. Error message: "obj\Release\Client.csproj.App.config;obj\Release\MyAppName.exe.config" is an invalid value…
3
votes
1 answer

Is it possible to transform .properties file in java like app.config in C#

I have debug.properties file with debug settings in our project. This file located in repo and each teamate should made changes in this one before debugging. Can I modify this file based on some debug.template.properties file before build like xml…
Dmitry Romashov
  • 135
  • 1
  • 11
1
2 3 4