Our main build broke today. We have about 53 projects in our solution (yes, its huge) and all of a sudden … pow … NAnt started timing out. Upon further investigation I noticed that the build was timing out at the following instance: Coverage Log: Coverage.Log Waiting for profiled application to connect…Connected Configuring Profiler……
Continue Reading »
It has been moved to November 14th and 15th of 2009. Why? Get the inside scoop here.
Continue Reading »
While writing some code I needed to be able to access the the App_Data directory in my ASPNET MVC app. Doing this usually involves a Server.MapPath, but this wont work for my unit test. Here’s how you can get around it: var appDataPath = (string)AppDomain.CurrentDomain.GetData("DataDirectory") ?? AppDomain.CurrentDomain.SetupInformation.ApplicationBase; Now I have my data directory…
Continue Reading »
This post might be useful if you perform auto-registration of your components through an interface. Like this: AllTypes.Of<IController>().FromAssembly(typeof(Application).Assembly).Configure(reg =>reg.Named(reg.Implementation.Namespace.Split('.').Last().ToLowerInvariant() + "." +reg.Implementation.Name.ToLowerInvariant()).LifeStyle.Transient), This snippet of code finds all types that implement the IController interface. This would be any controller in your MVC App that implements the Controller base class (Controller implements IController). In this…
Continue Reading »
This an oldie, but a goodie. Not many people use this tool, much less know about it or where it exists. By default when you install VS2008 (I’m not sure if its part of 2005 or not) you have a tool at your disposal in the Visual Studio install path: My Path: c:\Program Files\Microsoft Visual…
Continue Reading »