I have a UWP app that includes a webview that shows files compiled from a separate source. The separate source dumps all the files out into a folder, and I want to just include the entire contents of that folder automatically in my UWP build.
I've not found a simple, automatic way to do this.
I can sloggingly add them manually using this method: Copying assets into UWP application package however this doesn't really help me because the process that generates the files in the folder can add, remove or change the names of the files all over the place. Every time it does this (and this can be multiple times a day) I have to go in and re-add or remove the files that have appeared/disappeared.
Currently my best idea is to write a script that will parse the folder, list the files and then automatically generate a vcxproj file from that list. This, however, seems hacky and would have several drawbacks (eg. any changes I make to the project file in VS2015 would get binned unless I also changed the script)
Is there a way to just tell VS2015 to put all the files (and sub-folders) in a named folder into the UWP app, no questions asked?