We’ve worked through several chapters in preparation for this chapter, but we are finally ready to begin coding the custom task in earnest. We start by adding references to the project, decorating the class, inheriting from a base class, and adding a property.
Using a Reference
Open the Visual Studio solution ExecuteCatalogPackageTask. In Solution Explorer open the class ExecuteCatalogPackageTask.vb. At the very top of the class, add the following line:
Imports Microsoft.SqlServer.Dts.Runtime
Your class now appears as shown in Figure 5-1.