Short Overview of SharePoint Features in Visual Studio 2010

Original article by Peter Jausovec
"As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

Configurable deployment

With all new SharePoint project templates you can leverage new configurable deployment feature which lets you configure the way you want to deploy or retract your project. Besides using provided, out of the box deployment steps (Run Pre-Deployment Command, Run Post-Deployment Command, Recycle IIS Application Pool, Retract Solution, Add Solution, and Activate Features) you can use SharePoint extensibility to create your own, custom deployment steps and deployment configurations.

Sandboxed and farm solutions

Some SharePoint projects can be deployed either as sandboxed or farm solutions. Sandboxed solutions run in a secure and monitored process that has limited resource access and with farm solutions user must have SharePoint administrator privileges to run or deploy the solution. You can read more about SharePoint sandboxed solution here.

Extending SharePoint Tools

Even though Visual Studio 2010 contains a set of project templates you can also extend them. You can create extensions for projects, project items, define your own project item types and create deployment extensions. You can read more about extending SharePoint tools on MSDN.

Feature and Package Designer

Feature and package designers give you the ability to customize features in your solution and with packaging designer you can customize which features are getting deployed and how. More about feature and package designer is here.

SharePoint Explorer

SharePoint Explorer is a new tool window that gives you a view into your SharePoint server. You can get a hierarchical view of lists, sites and workflows on your SharePoint server.

SharePoint Project and Project Item Templates

The following SharePoint specific project templates and project item templates are available in Visual Studio 2010:
Project Templates
  • Empty SharePoint project
  • Visual Web Part project
  • Sequential and State Machine Workflow
  • Business Data Connectivity Model
  • Event Receiver
  • List Definition
  • Content Type
  • Module Project
  • Site Definition
Project Item Templates
  • Empty Element
  • Web Part
  • User Control
  • Application Page
  • Association Form
  • Initiation Form
  • Business Data Connectivity Resource Item
  • List Instance
  • List Definition From Content Type
  • Global Resources File
Besides above mentioned project templates, there are two import project templates for importing .WSP file contents and importing reusable workflows:
  • Import Reusable Workflow
  • Import SharePoint Solution Package

How to download, install and get started

If you are a MSDN subscriber, you can download Visual Studio 2010 from here. Download will be available to everyone on October 21st.
If you want to know how to download and install Visual Studio 2010 watchChannel9 video.
To get you started, head over to MSDN and read some of the walkthroughs on SharePoint Development in Visual Studio 2010."

SharePoint 2010 Snack! a must for Developers

5 Videos of SharePoint 2010 for developers. It will all seem very easy for those who are familiar with MOSS 2007

SharePoint 2010: Professional Developer Evaluation Guide and Walkthroughs

The SharePoint 2010 developer evaluation guide describes the SharePoint 2010 developer platform, including walkthroughs of some of the new capabilities for developers.

SharePoint 2010 : Jeff Teper, Microsoft

A very interesting post by Jeff Teper – Corporate Vice President, SharePoint Server, Microsoft on SharePoint 2010, read more...

c# : Read XML from URL

There are multiple methods to capture XML from a URL, but this particular example is helpful when you are dealing with special characters of foreign languages. The loaded XML will display them in correct format for the charset specified.

//Include the following packages
using System.Net;
using System.IO;

//request the particular web page
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("");

//define the login credentials of the requested file/page
request.Credentials = new NetworkCredential(”UserName”, “Password”);

//get the response from the request
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

//create a stream to hold the contents of the response
Stream receiveStream = response.GetResponseStream();

//create your XML document
XmlDocument mySourceDoc = new XmlDocument();

//load the file from the stream

//close the stream