I have a file appsettings.json which should be installed in my target directory.
However, I would like to select the source file depending on a condition. Although I can define a condition for the component, I can only ever define one file as the source file. I have seen that I can define the path to the source file using different builds. In this case, however, this is of no use to me as the condition can change at runtime. So probably the only way will be to copy the file manually from two different sources via custom action.
Is there an easier way to do this that I don't know? It would be very helpful for the future if you could define a target file from several different sources.
FOLLOW US