Visual Studio 2010


[PowerShell] Using Common Verbs for Custom PowerShell Cmdlets in C#

In my previous post, [PowerShell] Write a Custom PowerShell Cmdlet in C#, I mentioned that the commond verbs built-in to PowerShell should be used whenever possible. Here is a listing of all of the common PowerShell verbs available in PowerShell 2.0: VerbsCommon Add Clear Close Copy Enter Exit Find Format Get Hide Join Lock Move […]

[PowerShell] Write a Custom PowerShell Cmdlet in C#

Particularly with SharePoint 2010, I have become a huge fan of Microsoft PowerShell. In addition to writing complex PowerShell scripts (.ps1 files), I have found it very useful to write my own C#-based PowerShell Cmdlets to use in my scripts. This basic tutorial illustrates how to create a basic PowerShell Cmdlet with a couple of […]

[SharePoint 2010] Debugging a Custom SharePoint Timer Job

When creating custom SharePoint timer jobs in Visual Studio 2010 you cannot debug the timer job like you would a web part or application page by simply hitting F5 or the Debug button. Instead, you have to deploy the project to your local SharePoint instance and then attach the debugger to the SharePoint Timer Process. […]

[SharePoint 2010] Programmatically Add JavaScript, Meta Tags, and CSS Styles to the Header of Every Page

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages. For instance, you could add the jQuery library to the head of every page. If adding tags to the page <head> section is the […]

[SharePoint 2010] Custom Actions Default Locations and Group IDs

Custom Actions in SharePoint can be added to virtually every part of the SharePoint interface. Finding a complete list of the locations to reference in the Custom Action ELEMENTS.XML file has been a bit cumbersome. The MSDN article (http://msdn.microsoft.com/en-us/library/bb802730.aspx) has some, however it appears the writer simply took the SharePoint 2007 list and added the […]

[SharePoint 2010] Create a Simple Custom Action Using Visual Studio 2010

Visual Studio 2010 has added a multitude of new features to make custom development on SharePoint 2010 much simpler that it was previously. Though Visual Studio 2010 does not include a simple wizard or other simpler process for creating Custom Actions, we can still take advantage of the simple packaging, debugging, and deployment features available […]