Exercise 1: Review the Sample Project

In the XX_UpgradingVSeWSSSolutions lab folder >> Starter Files folder you will find a VSeWSS project (ProjectManagement) containing some of the typical elements that are created when developing SharePoint solutions. Before upgrading the solution to Visual Studio 2010 and SharePoint 2010 you will review the contents of the project.

Review the following image which shows the sample solution activated within a SharePoint 2007 site collection.

The VSeWSS project contains two features. The first is targeted to the site collection and the second feature to the site. The features consist of both declarative artifacts and code. The VSeWSS project has various project-level settings applied such as conditional compilation constants (the DEBUG flag). At the site collection level a new 'Project' content type is provisioned together with a Web Part. The Web Part uses CAML queries to locate projects in specific lists. The site level feature provisions a list template that is bound to the Project content type and the feature also creates two list instances with some sample data. The Web Part follows the Visual Web Part development paradigm, loading a User Control from the _controltemplates folder using the Page.LoadControl method.