Thursday, March 19, 2015

Configuration Include Folders Order of Inclusion

Question: Now that you can place folders below the /app_config/include folder what is the order in which the files are appended?

Answer:  Thanks to Andrew Vieau for investigating the answer. The files are appended in the following order:

1) All the files in the root of include in alphabetical order from A-Z.
2) All the folders are included in alphabetical order from A-Z.
3) Within each folder the files are include in alphabetical order from A-Z.

Example: This would be the order the contents of the file are processed.

/include/apple.config
/include/zebra.config
/include/apple/apple.config
/include/apple/zebra/config
/include/zebra/apple.config
/include/zebra/zebra/config

Additional References: 

Working with web.config include files:


If you have any questions, please email us at chris.williams@readwatchcreate.com

No comments:

Post a Comment