Search code examples
configurationweb-configapp-configconfigslowcheetah

Adding Slow Cheetah transformed config file as a reference in another project


I have a class library project with a Slow Cheetah'ed config file.

In the past, it was easy to use 'Add As Link' to add the config file to other projects. How could this be achieved with Slow Cheetah because config files are dynamic?

I need some kind of add reference for config files or if there is no way of doing this, I have to copy the config file and Slow Cheetah it again.


Solution

  • I found out that you can 'Add As Link' as normal, but link the main config file only, not the Slow Cheetah created files. Right click the link in the solution explorer and select "Add Transform" from the menu. Slow Cheetah creates links back to the Debug.config and Release.config files.