SharePoint24x7 It's all about SharePoint.

19Mar/131

Article – What’s New for SharePoint Development in Visual Studio 2012 – Part II – Streamlined SharePoint Project Templates

Posted by Joy

In this post I’m trying to talk about the new Streamlined SharePoint Project Templates in Visual Studio 2012.

Visual Studio 2010 came up with 12 project templates and we rarely used some of those project templates. Most of the time we ended up starting with Empty SharePoint project template and then structured the solution the way we need by adding additional projects and items.

After considering usage of SharePoint project templates and after gathering feedback from the industry, SharePoint team decided to include only the project templates which make sense as part of Visual Studio 2012. Following points explain some of the key enhancements and new features in the area of streamlined SharePoint project templates.

  • Project templates for both SharePoint 2010 and 2013 – Visual Studio 2012 supports developing applications for both SharePoint 2010 and 2013. This is one of the great enhancements in the area of SharePoint development and going forward we need not to install both Visual Studio 2010 and 2012 on the same machine to do SharePoint development.

    New Project - Visual Studio 2012

    New Project - Visual Studio 2012

  • Reduced no of project templates – now we have only 10 project templates for both SharePoint 2010 and 2013. The project templates which are part of Visual Studio 2012 are the ones we used a lot and make sense for developing solutions for SharePoint. Some of the project templates which we had back in Visual Studio 2010 and were not used much have re-engineered as Item Templates in Visual Studio 2012.
  • Visual aid for selecting item templates between Farm and Sandboxed solutions – back in Visual Studio 2010, we had visual aid for selecting project templates between Farm and Sandboxed solutions. But we didn’t have that support when we add items using item templates. In Visual Studio 2012, when we add a new item using item templates, Add New Item dialog box clearly indicates what are item templates which are supported only for Farm solutions.

    Add New Item - Visual Studio 2012

    Add New Item - Visual Studio 2012

For more details on each and every project template and item template, please check http://msdn.microsoft.com/en-us/library/vstudio/ee231554.aspx

18Mar/134

Article – How to enable SharePoint 2013 Development Project Templates in Visual Studio 2012

Posted by Joy

Visual Studio 2012 support both SharePoint 2010 and 2013 application development. These features are available in Professional, Premium and Ultimate editions of Visual Studio.

Installing Visual Studio 2012 will provide only SharePoint 2010 development projects templates by default. SharePoint 2013 project templates and many other SharePoint and Office development templates are distributed through Microsoft Office Developer Tools for Visual Studio 2012 option in Web Platform Installer.

Following screen capture shows, out-of-the-box SharePoint 2010 project templates available in Visual Studio 2012:

SharePoint 2010 Project Templates

SharePoint 2010 Project Templates

 

Following set of instructions will guide you to get SharePoint 2013 project templates integrated to Visual Studio 2012.

Task 1 – Install or Open Web Platform Installer
  1. If you have not installed Web Platform Installer already, navigate to the link http://www.microsoft.com/web/downloads/platform.aspx, download and install Web Platform Installer. This is a less than 2 MB setup and it won’t take much time to download and install.
  2. Open Web Platform Installer by navigating to Start –> All Programs –> Microsoft Web Platform Installer
Task 2 – Download and Install Microsoft Office Developer Tools for Visual Studio 2012
  1. Search for “SharePoint” keyword using the Search box in the Web Platform Installer.
  2. Select Microsoft Office Developer Tools for Visual Studio 2012 and select Add to add Office Developer Tools and any other associated tools.

    Web Platform Installer

    Web Platform Installer

  3. Click Install button and select I Accept from the license terms agreement dialog box.
  4. Web Platform Installer will download required components and install them and this may take few minutes.
  5. Once it’s completed, click Finish button.
  6. Restart your Visual Studio 2012 IDE and observer the new project type which are added by the Microsoft Office Developer Tools for Visual Studio 2012.
SharePoint 2010 and 2013 Project Templates

SharePoint 2010 and 2013 Project Templates

 

12Feb/131

Article – What’s New for SharePoint Development in Visual Studio 2012 – Part I

Posted by Joy

Microsoft released Visual Studio 2012 back in September 2012. Visual Studio 2012 comes with number of new features and number of enhancements for Windows, Web, SharePoint, Mobile and Cloud development areas.

Microsoft released SharePoint 2013 also back in November 2012. Microsoft announced that Visual Studio 2012 is the official IDE for developing applications for SharePoint 2013. Not only that, Visual Studio 2012 supports developing application for SharePoint 2010 as well. What a wonderful release..?

With this and number of upcoming posts, I’m going to showcase some of the cool features available in Visual Studio 2012 for SharePoint developers.

As the start, following are the list of new and enhanced features available in Visual Studio 2012 for SharePoint development:

  • Streamlined SharePoint Project Templates
  • Create Lists and Content Types by Using New Designers
  • Create Site Columns
  • Create Silverlight Web Parts
  • Publish SharePoint Solutions to Remote SharePoint Servers
  • Test SharePoint Performance by Using Profiling Tools
  • Create Sandboxed Visual Web Parts
  • Better IntelliSense support in Sandboxed solutions
  • Better support for JavaScript Debugging and IntelliSense for JavaScript
  • Test Your Code by Using Microsoft Fakes Framework
  • Apps development support for Office and SharePoint 

I will be writing number of future posts to discuss some of these useful features in details. Please have faith.