Saturday, December 4, 2010

Tips SharePoint

Following may be helpful while working with sharepoint:-

1. When you write new functionality for SharePoint 2010, the only good and maintainable way to deploy such functionality is as a SharePoint solution. A solution is simply a .cab file, renamed to a .wsp file. if you quickly want to check what are the items inside solution just simply rename a .wsp file to a .cab file and open it, you will most definitely see all the items & a manifest.xml file in there. The manifest.xml file is what SharePoint would use to understand what the solution contains.

2. Web Part inherits from the System.Web.UI.WebControls.WebParts.WebPart, which is a class that was introduced in .NET framework 2.0. There is also another .WebPart base class in the Microsoft.SharePoint namespace, but that is there only for backward compatibility reasons with WSS 2.0. If you're writing a WebPart today, you shouldn't inherit from that class.

3. If your SharePoint powershell commands are not running, you may need to load the SharePoint powershell snap in first. You can do so by executing this command on powershell:

Add-PSSnapin Microsoft.SharePoint.Powershell

4. If you need to install SharePoint Designer 2007 and SharePoint Designer 2010 on the same machine both of them will need to be 32 bit only. You cannot have 64 bit office 2010 and SharePoint Designer 2007 on the same machine. Personally speaking, I virtualize my work, so this is never an issue for me anyway. In short you cannot have 64 bit Office 2010, 64 bit SharePoint Designer 2010, and SharePoint Designer 2007 on the same machine. You can have them side by side in 32 bit versions.

No comments:

Post a Comment