As the ShapeAppAdvancedCSharp sample demonstrates, CodeDom offers a generalized representation of source code that works nicely with VSTA (ie: IVstaProjectHostItem.AddMethod()) and the DTE (ie: DTE.Solution.SolutionBuild.Build()). With this approach,...