Hi, we use Visual Studio transformations for managing our web.config file for our different environments (development, test, and production) -- it works well for both SVN and deployment.
We would like to use SlowCheetah to manage the Sitefinity config files (Configuration folder) in the same manner. SlowCheetah should be able to "transform your app.config or any other XML file based on the build configuration." I can successfully create the transform files for each environment but Visual Studio/SlowCheetah will not transform Telerik's config files based on the build configuration when I deploy the project. Is there a way to allow SlowCheetah to transform these config files?
Sabrie, thank you for your reply. Unfortunately, the process outlined in your documentation falls short in our multi-developer, multi-environment situation. Our environments include production, testing, and development; and local development for each developer. In an ideal world, a deployment would consist of backing up / restoring the database, copying the project files, and updating <add connectionString ...> in DataConfig.config. However, each of our environments has additional unique settings such as the STS setting for <federatedAuthentication> in web.config, the STS settings for <securityTokenIssuers> and <relyingParties> in SecurityConfig.config, <smtpSettings> in SystemConfig.config, <add defaultSenderEmailAddress ...> in NotificationsConfig.config, etc. -- not to mention the headache of config file tracking, versioning, and merging that's required as multiple developers promote their local changes to the central development environment and then up to the other environments.
SiteSync does not work for us because it does not work with HTTPS login, I could not get it to authenticate with our LDAP, it only syncs one way, etc.
In my opinion, if we're going to work with config files we need to have config files for each environment -- but the config files need to be versioned and easily merged, which Visual Studio and a versioning tool can do. And if we're not going to put all the configurations in web.config so that we can use the standard transformation functionality in Visual Studio, a solution like SlowCheetah is needed to produce environmental versions of those config files.
I've used SlowCheetah in the past so, you're not alone. :)
If you're deploying from Visual Studio, the transforms should be working. If you're not using VS to deploy, there is a NuGet package [for SlowCheetah] that I had to add to the project in order to get the transforms.
Thanks for your reply. I installed the SlowCheetah extension to Visual Studio, installed the NuGet package to my Visual Studio project, and configured transformations for a number of the .config files in the Configuration folder -- but when I publish, the transformation of the .config files in the Configuration folder does not occur. Is there something I'm missing?
Additional experimentation yielded the solution. The following three elements need to be installed: