I use a tool that generates c# source code (thrift), one file per type. I would like to amalgamate all of the types to a single compilable source file. I say compilable because simply concatenating the text from each file will produce a single file that does not compile do to the layout, e.g. multiple using blocks.
Is there a command line tool that will do this, or do I need to create one and if so what libs should I be looking at to do so.
======= EDIT ======
Didn't find anything and wimped out of contributing to thrift compiler source, so I knocked this up which does the trick: https://github.com/myles-mcdonnell/SourceMeld
Now I can add two pre-build steps in VS, one to exe thrift to generate source files, two to amalgamate to one file (the file that is include in project) and I have a seamless build process at dev time.