This sample code is provided as-is with no warranty, expressed or implied, of any kind. 

This code accompanies my Visual Studio Magazine April 2008 Ask Kathleen column.

This zip file contains projects to demonstrate several smaller questions and two projects that are a sample for System.AddIn. Copying XML is in the two rather badly named projects "CopyingAttributes" (VB) and "CopyingXMLCSharp"

The main project - System.AddInSample contains the pipeline and the initial, default add-in. Yu must assume however that later programmers will not be working within your solution when creating add-ins for your project, so I created a separate solution for the CustomCostCalculation. 

Enjoy!
Kathleen Dollard