Fix for not running during a "Build" in visual studio.