Partial success in generating the file and adding it to the solution... only works when debugging the T4 template