File nesting doesn't work due to case-sensitive file name comparisons
This issue has a corresponding ticket on Developer Community. Please vote and comment there to make sure your voice is heard.
[severity:It bothers me. A fix would be nice]
File nesting needs to use case-insensitive comparison of file names so that files with the same name, but have a case changes, behave the same way. I feel that this is a bug in Windows systems where the file name's case is irrelevant.
For example the file names app.config and App.config are the same name, but file-nesting in the example below only works for one of them. The syntax also doesn't allow adding other variations of the name. This needs to become consistent by doing one of three following things:
- Compare file names in a case-insensitive manner.
- Add an option to the syntax below to perform case-insensitive compares
- Allow adding more than file variation of a file's name
{
"root": false,
"dependentFileProviders": {
"add": {
"fileToFile": {
"add": {
"App.config": [
"App.config.template"
]
}
}
}
}
}
The code for this lives in CPS.