Elczar Adame's Shared Points on SharePoint

Posts tagged ‘Visual Studio 11’

Developing SharePoint Column, Content Type, and List Using Visual Studio 11

Few days back, a have posted a guide on how to develop a Sandboxed Visual Web Part  using Visual Studio 11. This time let me share with you the steps I have followed in developing SharePoint column, content type, and list using Visual Studio 11.

1. Let us start by creating a SharePoint 2010 Project in our Visual Studio 11.

Capture 1

2. Let us make sure to choose the “Deploy as a sandboxed solution” trust level option.

Capture 2

3. Then, let us add a Site Column. For this demonstration, let us create 2 columns: CustomLastName and CustomFirstName.

Capture 3

Capture 4

4. Now, let us add a content type inheriting the Item content type. For our purpose, let us name it CustomContentType.

Capture 5

Capture 6

5. Let us configure the columns to included in our content type using the latest designer provided by Visual Studio 11. We will include the CustomLastName and CustomFirstName we have created in the previous step.

Capture 7

6. And lastly, we will add a List. We will name it CustomList.

Capture 8

7. On the Choose List Settings dialog, let us make sure to choose the “Customize the list based on Default (Blank)” option.

Capture 9

8. Let us click the Content Types button to display the Content Type Settings dialog. Let us choose the CustomContentType that we have created earlier from the list of content types provided by the dialog window.

Capture 10

9. Before deploying the items we have developed, let us make sure that they are included in the feature.

Capture 11

10. After a successful deployment, we could finally have the custom list and custom columns that we have developed in our SharePoint site.

Capture 12


Digg This

Sandboxed SharePoint Visual Web Part in Visual Studio 11

A month ago, I have posted a basic guidance on how to create a sandboxed visual web part using Visual Studio 2010 SharePoint Power Tools. A week ago, I had an occasion to explore the sandboxed Visual Web Part in Visual Studio 11 Developer Preview and these are the steps I have followed:

1. I have installed Visual Studio 11 Developer Preview with Microsoft SharePoint Developer Tools features.

Capture 2

2. After a successful installation, I have started opening the Visual Studio 11 and created a SharePoint 2010 Project.

Capture 4

3. I have chosen the Deploy as a sandboxed solution as the trust level of my Visual Web Part.

Capture 5

4. At this point, I have added a Visual Web Part and developed a basic Visual Web Part. One thing I have noticed that templates not applicable for a sandboxed solution are already marked as Farm Solution only.

Capture 6

5. Upon deploying Visual Web Part I have created, I have added it in a SharePoint page. As easy as that! We have successfully implemented a Sandboxed Visual Web Part using Visual Studio 11 Developer Preview.

Capture 8


Digg This

Tag Cloud