Wednesday, January 21, 2015

How to generate and deploy WSP (Solution Packages) in SharePoint 2010 ?

How to deploy WSP (Solution Packages) file in SharePoint 2010?

There are few assumptions before making this wsp solution deployment :
  • You have a Visual Studio 2010 installed on your machine and SharePoint project set up and ready to go.
  • The project compiles with success.
  • Are able to use Powershell to execute your quick commands.

How to Generate WSP ?

Here to follow the deployment process, follow the simple steps as follow:
  1. The first step is to build your project by right clicking on your project/solution in Visual Studio 2010 and choose "Build".
  2. Depending on your configuration, you can build to a debug or release directory.
  3. Browse the location from your computer directory which will be located in "C:<Project Directory>bin<release or debug>". 

wspYou can see the files - an assembly dll and your .wsp file in your location shown in the left image. So this is the WSP file which you will be required for your solution deployment in SharePoint 2010.

How to deploy a SharePoint 2010 WSP ?

Depending your approach, you can execute below commands in Power Shell in SharePoint
  • Add Solution
    Add-SPSolution c:<path><solution filename>.wsp
  • Deploy/Install Solution
    Install-SPSolution –Identity <solution file>.wsp –WebApplication http://<url> -GACDeployment
  • Update Solution
    Update-SPSolution –Identity <solution file>.wsp –LiteralPath c:<path><solution file>.wsp –GACDeployment
  • Uninstall Solution
    Uninstall-SPSolution –Identity <solution file>.wsp –WebApplication http://<url>
  • Remove Solution
    Remove-SPSolution –Identity <solution file>.wsp

You’re done!!

Verify that your assembly is the GAC (C:windowsassembly) and then go activate any features you may have had in your solution. 

Hope now you know "How to generate and deploy a SharePoint 2010 WSP ?"

Saturday, October 18, 2014

How to do SharePoint 2010 Content Deployment ?

What is SharePoint Content Deployment ?

Content Deployment can be use to export (deploy) content from one site collection to another site collection.

Content deployment will take care of following contents in the source site collection -
  1. -Web pages – Deploy corresponding images styles , master pages and etc.
  2. -libraries
  3. -lists
  4. -resources
Content Deployment will not deploy the below contents-
  1. -Programs
  2. -Assemblies
  3. -Features
  4. -Configuration information (Web.config) 

You can configure the Content Deployment as below-

How to configure Content Deployment:

First, we need to Create a site collection in the Production Server.

then, go to Central Administrator –> General Application Settings–> Configure Content Deployment in the Production Server.

What is Workflow in SharePoint 2010

Workflows in SharePoint Server 2010 :

Workflow enable an enterprises to reduce the amount of unnecessary interactions between people as they perform business processes.

SharePoint workflows can be developed in SharePoint designer or Visual Studio.

SharePoint 2010 provides a set of welcome workflow improvements. 
With SharePoint 2010, Microsoft introduced the .NET Framework 3.5 SP1 (and, then, Workflow Foundation 3.5). Even though a new version of Workflow Foundation 4.0 - with its improved architecture and design is provided with the .NET Framework 4. Microsoft chose to stick with a tested and reliable product. 
All the defined steps represents a business process. The number of human interactions that occur in business processes can inhibit speed and the quality of decisions.

SharePoint 2010 workflow improvements include the following features:

--Workflows that can be associated with websites (and not the lists)
--New options in out-of-the-box workflows
--The ability to create workflows by using Visio 2010
--The ability with SharePoint Designer 2010 to create workflows that can then be used out-of-the-box.

Monday, October 6, 2014

What is Apps for SharePoint 2013 and different type associated Apps

Apps for SharePoint 2013

A new custom component called the apps for SharePoint is not available in SharePoint 2013 which can be very useful for creating new functionality and user interface components.

The SharePoint 2013 Apps infrastructure also provides many benefits for SharePoint administrators by making it easier to manage the life cycle of custom applications.

There are some features provided as below :
  • SharePoint Marketplace
  • Corporate App Catalog
  • Removing Apps
  • Apps in Multi-Tenant Farms

Monday, September 29, 2014

What is Sharepoint Designer Workflow ?

8 Steps to create Sharepoint Designer Workflow:

Follow below steps for creating sharepoint designer workflow-

  1. Create a team site using the SharePoint team site template
  2. Create two task lists, one is incomplete task list and the other completed task list. To create task list, click on site action -> Create: Add a new library list -> create a task.
  3. Start the SharePoint designer
  4. Open the site in your SharePoint designer using click on file -> open site.
  5. Go to workflows by clicking on file -> new -> SharePoint content and click ok
  6. The first is this workflow will be attached to which list. Currently we have attached the workflow to incomplete tasks list. Second we need to define the events on which the workflow should be activated. For the current scenario, we have considered two events; one when the item is created and the second when the item is updated.
  7. Now, we need to define on what condition the workflow will execute and what action should take place if the condition is true. So when a task status is completed, two actions will take place. First the task will be copied from the incomplete task list to the completed task list. Second the task is deleted from the incomplete task list. Once you click finish, you can see the workflow created in the SharePoint designer.
  8. Ok, now it’s time to see the workflow in action. So go to incomplete task list and create a task with status completed.

Wednesday, September 24, 2014

Exporting and Importing SharePoint 2010 Content

Exporting a Site, Library or List using Central Administration-

The SharePoint 2010 Central Administration UI allows you to export the site, library and list to the file system. Note that to import them back you need to use a PowerShell cmdlet or the STSADM tool. Central Administration does not have provision for importing it back.

Go to START -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Central Administration, on the left side click on Backup and Restore link, then in the detail pane, click on Export a Site or list link under the Granular Backup section
export import content
Exporting and Importing SharePoint content

Wednesday, September 11, 2013

What are the SharePoint 2010 Editions ?

SharePoint 2010 consists of following editions:

  1. SharePoint Foundation 2010 (the free version)
  2. Microsoft SharePoint Server 2010 Standard Edition
  3. Microsoft SharePoint Server 2010 Enterprise Edition

Concepts of SharePoint 2010 mainly used for:
  • Governance considerations as related to business use of SharePoint.
  • Apply best practices associated with site and site collection administration.
  • SharePoint 2010 is used to Share Information in collaboration.
  • SharePoint 2010 is used to manage a collaborative team within the organization.
  • Identify and understand how to best make use of the core functionality available in SharePoint Foundation 2010.