title: .Net dependency injection on debug build using nant
body: <p>I have a relatively small app that Im building using vb.net 2.0, and nant. Its a app that calls out to an external exe to produce some output files, then processes those output files afterwards.</p>
  
  <p>I have built an interface to the exe, which I have created a stub implementation and the real implementation, what I would like to be able to do is use nant to either create a DEBUG build of the app, which calls the stub implementation, or create a PROD build of the app which will use the correct implementation.</p>
  
  <p>How could I achieve this?</p>
  
  <p>Also, I do not have the ability to update to a newer version of .net, just so you know :)</p>
  
  <p>Thanks!
  Mark</p>