I am developing a small Domain Specific Langauge to support our ETL efforts. I began the project by building two components:
1. A code generator that translates the Domain Specific Language to C# statements and emits a source file
2. A Visual Studio project containing a second source file that declares a PARTIAL class containing the supporting process flow.
The generated code is the other part of the partial class.
I want to maintain this separation because the second source file contains a lot of code, and I want to be able to modify that code in the IDE -- I want to be able to use Intellisense while I'm editing the code, and I want the benefits of incremental compilation
and error checking. In other words, I DO NOT want to have to have a large body of C# source that gets appended to the code I'm generating, but never gets compiled except by the CodeDomProvider.CompileAssemblyFromSource method.
So I'm facing the challenge of how to create an Assembly where I have a class that is compiled in two separate modules: one that is a fully realized C# source file (and is stored as a file), the other being generated on the fly (at the moment, it's being
generated as C# SOURCE, not as CodeDOM components).
Can anybody suggest how to link these two pieces together?
I've been thinking about dividing the generated code (which represents t
View Complete Post