You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingstaticNake.Location;// will print out current directoryConsole.WriteLine(CurrentDirectory);// you can dynamically substitute current directory// this will affect some functions in utility library// which rely on Location.CurrentDirectory;CurrentDirectory="C:\Temp";// will print out file path of the calling scriptConsole.WriteLine(NakeScriptPath());// will print out directory path of the calling scriptConsole.WriteLine(NakeScriptDirectory());// will print out path to directory in which Nake was startedConsole.WriteLine(NakeStartupDirectory);// will print working directory passed to Nake runner, // will default to NakeStartupDirectory otherwiseConsole.WriteLine(NakeWorkingDirectory);