public static void Root(CompilerState state, Argument <string> rootFile) { // Root command only executes if the current document is the first in the compile order if (state.Context.ResourceSet.ResourceCount > 1) { state.Context.Logger.Debug("Root command skipped."); return; } // Compile the root file Include(state, rootFile); // Afterwards stop the compilation of the current file state.Stop(); }