How to tweet automatically when you push a new package to nuget.org

Wouldn’t it be nice if your followers could be notified whenever you publish a new version of a NuGet package? Currently, nuget.org offers no support for this, but with the following tricks, you can get it working without programming.

The essential idea is to use the OData feed that nuget.org exposes to build an RSS feed with new items as you publish them, and have IFTTT do the tweeting from it.

The tools we’ll use to get this working are:

  1. LinqPad: to examine the nuget.org OData feed at https://nuget.org/api/v2 
  2. Yahoo Pipes: to tweak the OData feed output so that it looks like a “plain” feed
  3. IFTTT: to consume the pipe output and auto-tweet on new items

 

Exploring NuGet OData Feed with LinqPad

In order to build the query that will become your tweets’ source, we will add a new connection in LinqPad by clicking on the “Add Connection” link:...

Read full article

No Comments