Reputation: 1747
I'm new to ASP and wanted to know if it has conditional "compiling" (I know it is not compiled)
What I mean is: My app is delivered to diferent users. Each has it's own conditional app compilation. Now I need to condicionaly change Web.config's is there a way to use conditional compilation symbols ?
EOG
Upvotes: 9
Views: 17205
Reputation: 29073
transformations that @Daniel mentioned are great if their deployment requirements meet your needs. an alternative approach which is less powerful but easier to deploy is using the configSource attribute in your main config file to specify that certain sections should be loaded from other files. http://msdn.microsoft.com/en-us/library/system.configuration.sectioninformation.configsource.aspx
Upvotes: 8
Reputation: 190941
There is nothing like that for config files. The best thing to use is configuration file transformations.
Here is some documentation: http://msdn.microsoft.com/en-us/library/ie/dd465318.aspx
Upvotes: 5