Category Archives: .NET

Using Quartz.NET, Spring.NET and NHibernate to run Scheduled Tasks in ASP.NET

Running scheduled tasks in web applications is not normally a straightforward thing to do. Web applications are built to respond to requests from users and respond to that request. This request/response lifecycle doesn’t always match well to a long running … Continue reading

Posted in .NET, Web | Tagged , , , , | 8 Comments

DRY your CruiseControl.NET Configuration

Don’t Repeat Yourself (DRY) is one of the principles of good software development. The idea is that there should ideally be one and only one “source of knowledge” for a particular fact or calculation in a system. Basically it comes … Continue reading

Posted in .NET, Automation | Tagged , , | 4 Comments

MSBuild Task for PartCover

<![Rant[ I continue to lament the dearth of option for Test Coverage in the .NET world. In the Java world you have open source tools like Emma and Cobertura that are widely used and supported (and many more) as well … Continue reading

Posted in .NET, Unit Testing | Tagged , , , | 15 Comments

Tracking Project Metrics

How do you track the health of your software projects? Ideally you could come up with few, easy to collect metrics and have your Continuous Integration system generate the information and maybe even graph it over time. What we track … Continue reading

Posted in .NET | Tagged , , , | 1 Comment

Register and Unregister COM DLL from .NET Code

Background The command regsvr32 is used to register a native, unmanaged code DLL so that it is available via COM. With a registered DLL you can use COM Interop to call that code from .NET Managed code. Regsvr32 is unmanaged … Continue reading

Posted in .NET, Code | Tagged , | 4 Comments

Database Migrations for .NET

One of the more difficult things to manage in software projects is often changing a database schema over time. On the projects that I work on, we don’t usually have DBAs who manage the schema so it is left up … Continue reading

Posted in .NET, Automation, Code | Tagged , , | 5 Comments

ALT.NET in Milwaukee

I am a generalist. I like Ruby and Groovy, Rails and Grails, Objective C and Python sometimes. I use bash scripts and I use Java and .NET too. I work on a MacBook Pro running OS X and a Thinkpad … Continue reading

Posted in .NET | Leave a comment

Implementing Mixins with C# Extension Methods

Wikipedia defines a mixin as “a class that provides a certain functionality to be inherited by a subclass, but is not meant to stand alone. Inheriting from a mixin is not a form of specialization but is rather a means … Continue reading

Posted in .NET, Code | Tagged , , , | 6 Comments

ALT.NET Milwaukee

Dan wrote a post about ALT.NET in Milwaukee. Basically the idea of ALT.NET is to take the best practices from software development, to find the best tools available in .NET regardless of the vendor and to use them when they … Continue reading

Posted in .NET | Tagged , , | Leave a comment

ObjectBuilder Can Inject to UserControls As Well

This is a followup to my previous post on integrating ObjectBuilder and ASP.NET. As I was playing around with the solution I hit on the fact that I was only injecting at the Page level. As ASP.NET is a component … Continue reading

Posted in .NET | Tagged , , , | Leave a comment