microsoft/slow-cheetah

`app.config` missing on ScFilesToTransform after ScCollectTransformFiles is executed

julealgon opened this issue · 2 comments

I had a custom requirement, to apply multiple transforms to files during the build (similar to the question raised here #145) but I stumbled upon a weird behavior: after inspecting the ScFilesToTransform itemgroup, the app.config file was missing from the list, even though it was marked with the TransformFile metadata.

Built-in transformations (based on $(Configuration)) still worked fine on the file, but I was unable to add my custom transforms on it without explicitly adding the app.config file again to my own ItemGroup.

Why doesn't the app.config file show up in this item group after the ScCollectTransformFiles target is executed? Is there any hidden handling that happens for the main configuration file in the project that I'm missing (besides the special rename action that takes place after the build)?

While I managed to solve it on my side, I'm not fond of the hardcode in my project file so I'd like to understand and potentially fix this later on.

I just delete the app.Debug.config to bypass the damn error :P

Vnuuk commented

I just delete the app.Debug.config to bypass the damn error :P

Awesome, that worked for me. Thank you!