Thursday, July 1, 2010

SharePoint Guidance V3 release on MSDN

The SharePoint Guidance V3 has been released on MSDN. Here is an overview:



Developing Applications for SharePoint 2010 contains guidance documentation, detailed examples, and a reusable class library. These resources are designed to help solution developers and architects make the right decisions and follow proven practices when designing and developing applications for SharePoint 2010. The guidance focuses primarily on the building blocks that every developer needs to understand to become an effective SharePoint developer or architect. The following diagram shows the key areas that are covered within the guidance documentation, reference implementations, and reusable class library.

The guidance documentation is divided into four core sections.
  • Application Foundations for SharePoint 2010. This section describes approaches you can use to address the challenges of testability, flexibility, configuration, logging and exception handling, and maintainability; it also explains how to use the SharePoint Guidance Library components in these areas.
  • Execution Models in SharePoint 2010. This section provides deep technical insights into the mechanics of the full-trust execution environment, the sandbox execution environment, and various hybrid approaches to executing code in SharePoint applications.
  • Data Models in SharePoint 2010. This section explains new list and external data functionality, key design decision points that can help you to choose between standard SharePoint lists and external lists, and techniques and patterns to address large lists and list aggregation.
  • Client Application Models in SharePoint 2010. This section provides guidance on how best to use the new client-side functionality to access data and build richer client experiences with Silverlight and Ajax.
Each section also contains a set of how-to topics. These explain how to perform specific tasks that the team found challenging to discover.

Go take a look and learn from the Guidance. It is available here.

Visual Studio 2010 cannot find SharePoint 2010 site

I realize I haven't blogged in a while, but hopefully I should be back on here blogging about all the stuff I am doing in SharePoint 2010. It's a great platform, and I have been working on it for a few months.

So here is the scenario:
You are using Windows 7 x64 bit and have installed SharePoint 2010 on it. You are building great solutions in VS 2010 for SharePoint 2010. You spin up a quick Console Application to try some stuff out against your local instance of SharePoint and your program throws up an error at this line, indicating that the site cannot be found.

using (SPSite site = new SPSite([your local URL]))

This happens because Visual Studio is configured to build for x86 by default. To get past this error, right click on the solution file in Visual Studio --> click on properties, on the top right click on Configuration manager and add a x64 configuration. Then go to project properties --> Build --> Select x64 as the target platform.

Voila, that should all work now.