About Me

My photo
a Dynamic and Energetic guy.....

Sunday, January 9, 2011

Visual Studio 2010 with SharePoint Development

When talking about SharePoint 2007 with Visual Studio 2008 we had tedious process to do development in sharepoint.

  1. No direct way to do "Debugging"
  2. Had to attach W3WP.exe process manually
  3. Had to copy images / usercontrols to 12 hive manually
  4. Had to add safe control entries in web.config manually

But all & all now we have marriage of SharePoint 2010 with Visual studio 2010.

  1. Specific SharePoint templates & SharePoint items
    1. Project includes separate properties & assemblies sections same as normal VS project
    2. Items can be categorized into
      1. Features (It comes with design mode, XML definition and activation)
      2. Packages (It comes with design mode, XML definition)
  2. Migration tools
  3. SharePoint explorer (Also we can use "Mapped Folder" concept directly with 12 hive)
  4. Direct debugging
  5. One click deployment
    1. Default (have to activate manually)
    2. No activation

What it does when we press F5 (in a SharePoint project)

  1. Builds a new assembly
  2. Packages project into .WSP file
  3. Deactivate/ Uninstall feature (if installed before)
  4. Delete old .WSP file
  5. IIS Reset
  6. Deploy new .WSP file
  7. Activate feature (Using site URL that we given when creating SharePoint project)
Attach debugger to W3WP.exe

No comments:

My Masters