After running through the screencasts, I decided it was time to do the solution release build and I ran into immediate trouble with a "ERROR: Could not find file DeploymentFiles\SoulutionPackage.ddf ..." error message in the Output Window.
The solution, found on the STSDEV discussion board, is as follows:
- Modify the "ReleaseBuild" target in the DeploymentFiles\Microsoft.SharePoint.targets file as below (fix highlighted in bold red):
<message text="Deleting Pacakge File..." importance="high">
<delete files="$(ProjectDeploymentFilesFolder)\$(PackageFile)" continueonerror="true">
<message text="Building Cab File (Release Version)" importance="high">
<exec command="$(MAKECAB) /F $(ProjectDeploymentFilesFolder)\SolutionPackage.ddf /D CabinetNameTemplate=$(PackageFile)" continueonerror="false">
- Rebuild with the "DebugBuild" configuration
- Restart Visual Studio (to ensure nothing was cached)
- Rebuilt with the "ReleaseBuild" configuration
If you modify the Release Build configuration in the Microsoft.SharePoint.targets file right when you open the project for the first time after creating it in STSDEV it'll save you having to do the above steps.