SharePoint Developer Team Blog

Brought to you by Microsoft teams working on SharePoint developer content, Visual Studio tools, and of course the platform itself!

April, 2011

  • SharePoint Developer Team Blog

    Incrementing the feature version through MSBuild (Phil Hoff)

    • 0 Comments
    If you are using TeamBuild or MSBuild to build SharePoint projects , you can automatically increment the build number for the SharePoint feature version. The following MSBuild code example can be added to a SharePoint project file (.csproj or .vbproj) to auto-increment the build number of all features in the package immediately prior to packaging.  It inserts a custom target between the generation of the project service graph and the actual manifest generation.  The target then invokes a custom, inline MSBuild task that takes each of the resolved features’ designer files, opens it, updates its Version property, then writes it back to disk.  < Import Project = " $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\SharePointTools\ Microsoft.VisualStudio.SharePoint.targets " /> < UsingTask TaskName = " IncrementFeatureVersion " TaskFactory = " CodeTaskFactory " AssemblyFile = " $(MSBuildToolsPath)\Microsoft.Build.Tasks...
  • SharePoint Developer Team Blog

    New SharePoint 2010 SDK Available for Download: Now Includes SharePoint Online!

    • 0 Comments
    Hello folks!  The SharePoint 2010 Software Development Kit (SDK) has been updated with new documentation, code samples, and IntelliSense XML files.  You can get it here from the Microsoft Download Center .  As always, the SDK is a free download . The SDK now contains information for developing SharePoint Online solutions.  For more information, check out the SharePoint Online Developer Center on MSDN .  Recommended starting places are Developing SharePoint Online Solutions or SharePoint Online Development in 180 seconds (online video) .  You can also download the SharePoint Online for Office 365: Developer Guide . Installation Details The following topic describes how to download and install the SDK .  You can also watch a video here .  The current version of the SDK is 4763.1086.  You’ll need to uninstall previous versions of the SDK before installing this new one. You can set up the SDK on a machine that has SharePoint installed, or you can...
  • SharePoint Developer Team Blog

    Just Published: Apr. 1- 15 | 2010 SharePoint Dev Content (Beck Andros)

    • 0 Comments
    More weekend reading! This time, there is content about SharePoint Online for Office 365, PowerPivot, sandboxed Silverlight applications, and more. Developer Guide Content · SharePoint Online for Office 365: Developer Guide Technical Articles · Creating Solutions with Microsoft PowerPivot for Excel and SharePoint Provided by: Frank Rice | Editor: Barry Garvue Visual How To Articles · Calling Public Web Services from a Sandboxed Silverlight Application | Code sample | Video Provided by Scot Hillier | Editor: Tonda Kiffin Book Excerpts · Real World SharePoint 2010: Indispensable Experiences from 22 MVPs o Chapter 3: Monitoring SharePoint 2010 o Chapter 11: Building Customer Service Applications for the Right Situations Developer Centers o Updated "Focus On" section: Focus On... SharePoint Online in Office 365 o Added in SharePoint Essentials section: SharePoint Online Developer Resource Center Editor: Kimberly Hope | Site manager: Verna Appel DeLuna o Added in Sandboxed Solutions...
  • SharePoint Developer Team Blog

    How to get the package name or other names of SharePoint items (Phil Hoff)

    • 0 Comments
    You can use replaceable parameters inside project files to provide values, such as SharePoint project file names, assembly names, package names, feature names, and more. The full list of replaceable parameters is documented at Replaceable Parameters . Here is a code example of how to use the replaceable parameter for a SharePoint package name in a VSIX extension. // Get the DTE project you’re interested in. EnvDTE.Project dteProject = … // Get a service provider from somewhere. IServiceProvider serviceProvider = … // Get the SharePoint project service (our extensibility API—reference Microsoft.VisualStudio.SharePoint.dll). var projectService = serviceProvider.GetService( typeof (ISharePointProjectService)) as ISharePointProjectService; // Convert the DTE project into the corresponding SharePoint project. var project = projectService.Convert<EnvDTE.Project, ISharePointProject>(project); // Get the package name from the package file’s (i.e. *.package) object...
  • SharePoint Developer Team Blog

    Announcing SharePoint Stack Exchange

    • 4 Comments
    For the SharePoint enthusiasts that like stackoverflow , there is now a SharePoint specific site called SharePoint Stack Exchange . It has been available for a week now, so join the questioners here to vote up, leave comments, vote down, edit wiki posts, or accept answers.  
  • SharePoint Developer Team Blog

    Using the JavaScript Object Model in a Content Editor Web Part (Kumar Abhishek Verma)

    • 14 Comments
    Much has been written about how to use the new ECMAScript class library to do useful things in SharePoint 2010. A recent search turned up advice about how to use JavaScript in a Web Part , how to use it to customize the ribbon , and how to use it in custom application pages . But not much has been said about programming against the SharePoint 2010 client-side object model in JavaScript that you insert in a Content Editor Web Part. This blog aims to plug that gap. Suppose, for example, that your SharePoint website includes a survey list. Now, when you created the list, SharePoint automatically inserted a link under the Surveys heading on the Quick Launch menu. But let’s say that you want maximum participation in this survey. A simple link might not grab enough attention. What you want, let’s suppose, is a way to embed the survey form itself directly on the website’s Home page. You want to put the form where users can see it immediately and respond without going out of their way. It is a...
  • SharePoint Developer Team Blog

    Reducing the amount of markup in ASCX files

    • 0 Comments
    If you are using the Visual Studio 2010 SharePoint Power Tools and you are adding many controls to your ASCX file, you may see the following error message. Warning 19 The custom tool 'SharePointWebPartCodeGenerator' failed. There was an error deserializing the object of type Microsoft.VisualStudio.SharePoint.Commands.CommandParameter. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 197, position 21. <MyASCXPath> <MyProjectName> The guidance is to reduce the size of the ASCX file by completing these steps. Move JavaScript and CSS out of the .ASCX file to reduce the amount of markup in the .ASCX.  Deploy the scripts and CSS to a library in the site collection containing the sandboxed web part.  Leverage the code-behind model to generate UI elements rather than embed in the...
  • SharePoint Developer Team Blog

    New SharePoint and Silverlight Training Course

    • 0 Comments
    Paul Stubbs has announced the release of a new SharePoint and Silverlight training course. You can view the courses online, or download the offline training kit. There is also a VHD available for completing the labs. Here are the available courses: Introduction To Silverlight and SharePoint Integrating Silverlight and SharePoint Accessing Data with the Silverlight Client Object Model Accessing Data With Web Services and Data Services Interacting with JavaScript and jQuery Branding With Silverlight Accessing Cloud Data with Windows Azure and SQL Azure Building Advanced SharePoint Controls with Silverlight Understanding the Silverlight and SharePoint Security Models Advanced Silverlight and SharePoint Solutions For more information, see Paul Stubbs' blog post about the New SharePoint and Silverlight Training Course .
  • SharePoint Developer Team Blog

    Just Published: March 8–March 31 | 2010 SharePoint Dev Content (Beck Andros)

    • 0 Comments
    In the style of The Official Microsoft Blog , we now offer weekend reading material. Check out all the content produced by the SharePoint community and writing teams. Technical Articles · Claims Tips 2: Learning About Claims-Based Authentication in SharePoint 2010 Provided by: Steve Peschka | Editors: Siew Moi Khor; Kimberly Hope · Claims Tips 3: Learning About Claims-Based Authentication in SharePoint 2010 Provided by: Steve Peschka | Writer: Siew Moi Khor | Editor: Kimberly Hope · Using Event Receivers in SharePoint Foundation 2010 (Part 1 of 2) Provided by: Ali Badereddin; Nick Gattuccio | Editor: Dail Magee Jr · Using Event Receivers in SharePoint Foundation 2010 (Part 2 of 2) Provided by: Ali Badereddin; Nick Gattuccio | Editor: Dail Magee Jr · Getting Started with the Workflow Object Model in SharePoint Foundation 2010 Provided by: Tyler Sanderson | Editor: Dail Magee Jr Developing Client Applications with Office 2010 and Business Connectivity Services for SharePoint Server 2010 Provided...
Page 1 of 1 (9 items)