title: Specifying An Entry Point For Class Library Projects
body: <p>is there's a way to specify and entry point to execute some code -namely registering some components in an IOC container- in a class library project.
  I do realize I could use the PreApplicationStartMethodAttribute but is part of the system.web namespace hence it will only work with ASP.NET applications I need something that will work with a tester console application as well an MVC application</p>