Skip to main content

Get the execution path of the application

To get the execution path of the Next Design application, use the Env property of the IApplication object.

public void OutputAppPath(ICommandContext c, ICommandParams p) 
{
var appPath = c.App.Env.Path;
c.App.Output.WriteLine("sample",appPath);
}