Saturday, October 31, 2009

SPBG Code Camp

The first SPBG Code camp is a reality :D

Workshops:
• Carsten Keutmann: Web Part, delegate control and more.
• Anders Dissing: Development in SharePoint 2010.
• Per Jakobsen: Code access security.
• Allan Hvam Petersen: Integration test in SharePoint.

 

 

Ohh yeah good time coding :)

Thursday, October 29, 2009

Scott Hanselman is coming to Denmark

Scott Hanselman will talk about ASP.NET 4.0 and MVC! YEAH! :D

Link to registration and more information read here, see you there.

PowerShell and SPFeature Properties

I was playing a bit around with some PowerShell. More precise “PS C:\Users\Administrator> Get-SPFeature -id 14173c38-5e2d-4887-8134-60f9df889bad | fl” and I got is list of properties out.

Name

: FeatureDefinition/14173c38-5e2d-4887-8134-60f9df889bad

Id

: 14173c38-5e2d-4887-8134-60f9df889bad

DisplayName

: PageConverters

SolutionId

: 00000000-0000-0000-0000-000000000000

ReceiverAssembly

:

ReceiverClass

:

UIVersion

:

UpgradeReceiverAssembly

:

UpgradeReceiverClass

:

Properties

: {}

Version

: 14.0.0.0

Scope

:

WebApplication
AutoActivateInCentralAdmin

: False

ActivateOnDefault

: True

RootDirectory

: C:\Program Files\CommonFiles\Microsoft Shared\Web Server Extensions\14\Template\Features\PageConverters

Hidden

: True

ActivationDependencies

: {}

AlwaysForceInstall

: False

RequireResources

: False

DefaultResourceFile

: core

TypeName

: Microsoft.SharePoint.Administration.SPFeatureDefinition

Status

: Online

Parent

: SPFarm Name=SharePoint_Config_d914eed3-48bf-4d2b-939d-60279b8b14bd

Farm

: SPFarm Name=SharePoint_Config_d914eed3-48bf-4d2b-939d-60279b8b14bd

UpgradedPersistedProperties

: {}

 

Cool! But what is even cooler is some of the new properties on the SPFeatureDefinition object like SolutionId, UpgradeReceiverClass and Version.

Taking a closer look of the members on the SPFeatureDefinition in the SharePoint 2010 SDK:

image

I’m really looking forward to make some nice IT governance with these new properties!

Tuesday, October 27, 2009

What's New in Visual Studio 2010

I just install the new version of Visual Studio 2010 (beta 2) link to download – yeah!!!

Vs.net 2010 splash screen

But it is not only the splash screen and the logo that has changed. On MSDN is there a whole brunch of articles about what’s new in Visual Studio 2010. To make a quick highlight of what I find interesting:

What's New in Visual Studio 2010 - http://msdn.microsoft.com/en-us/library/bb386063(VS.100,classic).aspx

What's New in Visual C# 2010 - http://msdn.microsoft.com/en-us/library/bb383815(VS.100).aspx

  • Dynamic Support
    Visual C# 2010 provides support for late binding to dynamic types by introducing a new type, dynamic. This addition enables many new scenarios, including simplified access to COM APIs such as the Office Automation APIs, to dynamic APIs such as IronPython libraries, and to the HTML Document Object Model (DOM). For more information, see Using Type dynamic (C# Programming Guide) and dynamic (C# Reference).
  • Highlighting References
    This enhancement enables you to highlight all instances of a particular symbol in a document by clicking that symbol. To navigate between references, you can use CTRL+SHIFT+DOWN ARROW or CTRL+SHIFT+UP ARROW. For more information, see How to: Use Reference Highlighting.

What's New in the .NET Framework Version 4 - http://msdn.microsoft.com/en-us/library/ms171868(VS.100).aspx

Managing Visual Studio Extensions - http://msdn.microsoft.com/en-us/library/dd293638(VS.100).aspx

  • Microsoft Visual Studio 2010 uses a new feature called the Extension Manager to add, remove, enable, and disable Visual Studio extensions. The Extension manager has a UI similar to that of the Windows Control Panel, and can be opened from the Tools menu in Visual Studio by selecting Extension Manager…

Extension Manager

Monday, October 26, 2009

Danish SharePoint User Group (SPBG) CodeCamp!

The 31 of October will the Danish SharePoint User Group (SPBG) arrange the first SharePoint Code Camp. Peoplenet has been so kind to facilitate the premises and sponsor food and beverages.

For more detail and registration go to http://spbg.dk (full link http://sharepointbrugergruppe.dk/Lists/Mder/DispForm.aspx?ID=17 in Danish)

SharePoint 2010 - Developer dashboard

What is Developer dashboard?

Developer dashboard is a feature that allows you as a developer or an administrator to view trace information about the current request.

What can I use it for?

To debug the current SharePoint request and get an overview of where the pain-point on the request is.

How to turn developer dashboard on?

Turn developer dashboard always on: stsadm -o setproperty -pn developer-dashboard -pv on

Turn developer dashboard ondemand (click on the icon): stsadm -o setproperty -pn developer-dashboard -pv ondemand

Turn off developer dashboard: stsadm -o setproperty -pn developer-dashboard -pv off

Walkthrough:

Turn on developer dashboard ondemand by running "stsadm -o setproperty -pn developer-dashboard -pv ondemand"

Go to you site and on the top right corner the developer dash icon is showed, click on it

clip_image001

clip_image004

Then the site is finish loading go to the bottom of the screen and there you see the developer dashboard output.

clip_image006

In the left on the screen a quick trace information is showed and on the right is information about the web server and database requests.

clip_image008

If you click on a database request a popup window comes up with information about the query and the callstack.

clip_image010

By clicking on the quick trace information link a more detailed view of the trace is showed on the right site. E.g. The parse CAML query or the specific database request.

clip_image012

At the button of the developer dashboard is there a link "Show or hide additional tracing information . . ." this link will show the full asp.net trace view.

clip_image014