It looks like you are trying to do what is already implemented as a Wix# native feature :)
You can add the whole directory with the files in a single step:
Have a look at "ReleaseFiolder" and "WildCard Files" samples.
You can add the whole directory with the files in a single step:
var project = new Project("MyProduct", new Dir(@"%ProgramFiles%\My Company\My Product", new Files(@"..\Release Folder\Release\*.*",...