Based on the SDK ShapeAppDynamicProgrammingModelCSharp sample, this updated sample demonstrates packaging VSTA DPM add-ins in the associated document including both the source code and compiled add-in. This sample also features the same Seamless Non-Destructive Debugging experience as seen in the ShapeAppMacroRecordingCSharp sample.
Related Links:Summit: Packaging Video
MSDN: Add-in Debugging
MSDN: DPM Walkthrough
MSDN: Office Packaging