Windows SharePoint Services 3.0 includes a new method of deploying custom code and functionality to SharePoint sites that acts as the internal installer framework for Windows SharePoint Services. A Windows SharePoint Services solution package (*.wsp) is a CAB file that includes all custom code and files that should be deployed to a SharePoint site.
Automating Solution Package Creation for Windows SharePoint Services by Using MSBuild
Learn how to use MSBuild to automatically generate solution package files for Windows SharePoint Services.