Skip to content

Instantly share code, notes, and snippets.

View james-dibble's full-sized avatar

James Dibble james-dibble

View GitHub Profile
@james-dibble
james-dibble / BeforeBuildScript.ps1
Created October 19, 2014 09:59
Appveyor before build arguments to patch the csproj file so that a ClickOnce manifest's version is in sync
[xml]$projectFile = Get-Content "C:\projects\chocolateyexplorer\ChocolateyExplorer.WPF\ChocolateyExplorer.WPF.csproj"
$projectFile.Project.ChildNodes.Item(1).ApplicationVersion = "$env:APPVEYOR_BUILD_VERSION"
$projectFile.Save("C:\projects\chocolateyexplorer\ChocolateyExplorer.WPF\ChocolateyExplorer.WPF.csproj")
@james-dibble
james-dibble / SyndicationController.cs
Last active August 29, 2015 14:12
A basic implementation of an Umbraco SurfaceController that returns RSS feeds
using System;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web.Mvc;
using JamesDibble.ApplicationFramework.Web.Rss;
using Umbraco.Web;
using Umbraco.Web.Mvc;
@james-dibble
james-dibble / Startup.cs
Created December 23, 2014 16:31
Umbraco startup class to add routes for Syndication
using System.Web.Mvc;
using System.Web.Routing;
using Umbraco.Core;
public class Startup : IApplicationEventHandler
{
public void OnApplicationInitialized(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
}