//=====================================================================

        /// <summary>
        /// This is used to report unresolved assembly information
        /// </summary>
        /// <param name="sender">The sender of the event</param>
        /// <param name="e">The event arguments</param>
        /// <remarks>An unresolved assembly reference will terminate the application</remarks>
        private static void UnresolvedAssemblyReferenceHandler(object sender, AssemblyReferenceEventArgs e)
        {
            ConsoleApplication.WriteMessage(LogLevel.Error, "Unresolved assembly reference: {0} ({1}) " +
                "required by {2}", e.Reference.Name, e.Reference.StrongName, e.Referrer.Name);

            // If in the debugger, break so that we can see what was missed
            if(System.Diagnostics.Debugger.IsAttached)
                System.Diagnostics.Debugger.Break();

            Environment.Exit(1);
        }
 private static void UnresolvedAssemblyReferenceHandler(Object o, AssemblyReferenceEventArgs e) {
     ConsoleApplication.WriteMessage(LogLevel.Error, String.Format("Unresolved assembly reference: {0} ({1}) required by {2}", e.Reference.Name, e.Reference.StrongName, e.Referrer.Name));
     Environment.Exit(1);
 }