Here in this article we will discuss about Creating a SharePoint Solution in visual studio 2010 you will need to launch Visual Studio as an administrator. Also you can check out my previous posts on:
The SharePoint projects in Visual Studio require administrator privileges to interact with SharePoint.
To launch Visual Studio as an administrator, Go to the Microsoft Visual Studio 2010 shortcut in the Start Menu under All Programs > Microsoft Visual Studio 2010.
Right click on the Microsoft Visual Studio 2010 shortcut.
You can choose Run as administrator from the context menu to run Visual Studio as an administrator.
Another way if you want to run always the visual studio as administrator then you can change the Microsoft Visual Studio 2010
shortcut properties to always run as administrator.
To do this, right click on the Microsoft Visual Studio 2010 shortcut and choose Properties. Click the Compatibility tab. Then check the Run this program as an administrator check box and press OK.
Once Visual Studio has started up, choose New > Project from the File menu. This brings up the New Project dialog. Select Visual C# as the language from the tree view control on the left. Then expand the Visual C# node and select SharePoint under the Visual C# node.
Expand the SharePoint node and click the 2010 node. This will display all the available SharePoint project types.
Visual Studio has 12 basic SharePoint project types. These are as below:
1- Empty SharePoint Project
4- State Machine Workflow
5- Business Data Connectivity Model
7- List Definition
11- Import Reusable Workflow
12- Import SharePoint Solution Package
Choose the project type as per your requirement.