Posts

Showing posts from June, 2009

NDepend and Cruise Control .Net

Well, it had to happen, I finally got around to posting my fix/hack/dirty for this problem. 1. The problem: NDepend html results are very pretty, but don't work when you integrate NDepend into CC.Net, CC.Net's own xslt log parsers mean that the pretty images created by NDepend (dependency diagrams, Zone diagram, etc) are not shown. 2. The fix! Create new file called image.ashx (ashx = cut-down webpage without the tedious events wired up) Stick this in there: <%@ webhandler language="C#" class="ImageHandler" %> using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Drawing.Imaging; using System.Globalization; using System.IO; using System.Net; using System.Web; using System.Web.Caching; public class ImageHandler : IHttpHandler { public bool IsReusable { get { return true; } } public void ProcessRequest(HttpContext ctx) { try { string name = ctx.Request.QueryString["name