MSDN Magazine - October 2008 - (Page 52) VENDOR-SPONSORED CONTENT Building SharePoint Solutions Using Visual Studio 2008 Visual Studio 2008 is the recommended primary developer tool for professional developers building SharePoint solutions.Visual Studio 2008 Extensions for Windows SharePoint Services 3.0, v1.2 is an add-on to Visual Studio 2008 and can be downloaded separately from the Microsoft Web site. It includes a set of Visual Studio project templates for many SharePoint artifacts including Web Parts, list definitions, content types, event receivers and templates. In addition, it includes a SharePoint solution packaging editor (known as WSP View) and the SharePoint Solution Generator utility, which can import some artifacts from existing SharePoint sites, including list definitions and site definitions. A comprehensive user guide of 150 pages is also available for download for the Visual Studio 2008 Extensions for Windows SharePoint Services. nologies, it is very valuable to have a background in them before learning SharePoint Development. • Second, build your development environment. SharePoint requires Windows Server 2003 or Windows Server 2008 to install on.You will either need a machine running either of these Server OSs or you can use a Virtual PC image. Microsoft provides a Virtual Hard Drive for use with Virtual PC for download.If you are building your own machine you can download Windows SharePoint Services 3.0 or the evaluation version of Microsoft Office SharePoint Server 2007. These download links are available here: http://go.microsoft.com/?linkid=9318876 • Next review your first SharePoint code sample. Here is a simple console application that uses the SharePoint API to write out all of the List names in all of the sites on the specified SharePoint site collection. static void Main(string[] args) { // Update to your server name using (SPSite siteCollection = new SPSite("http://localhost")) { SPWebCollection site = siteCollection.AllWebs; foreach (SPWeb web in site) { try { SPListCollection lists = web.Lists; Console.WriteLine("Site: {0} Lists: {1}", web.Name, lists.Count.ToString()); foreach (SPList list in lists) { Console.WriteLine("List: {0} {1}", list.Title, list.ID.ToString()); } } //catch (Exception) //{ // // handle // throw; //} finally { web.Dispose(); } } } // dispose is called on site as a result // of using() Console.WriteLine("Press ENTER to continue"); Console.ReadLine(); } Visual Studio item templates enabled by Visual Studio 2008 Extensions for Windows SharePoint Services 3.0, v1.2 Microsoft Office SharePoint Designer Microsoft Office SharePoint Designer 2007 is designed to enable you to build and customize SharePoint sites, workflow-enabled applications, and reporting tools.You can use it to define and control page layout and design, create master pages, design lists or content types, create sample data, create Web Part pages, hook up Web Parts, and take advantage of no-code data views or forms and no-code workflows. Many developers use both Visual Studio and SharePoint Designer together — SharePoint Designer simplifies the HTML design tasks, and Visual Studio provides a strong environment for authoring custom code. How to Learn and Get Started With Developing on SharePoint Products and Technologies This checklist will help you to learn SharePoint Development. • First, learn about .NET Framework and ASP.NET Development. Since all of SharePoint is built on these tech- http://go.microsoft.com/?linkid=9318876
For optimal viewing of this digital publication, please enable JavaScript and then refresh the page. If you would like to try to load the digital publication without using Flash Player detection, please click here.