Пример #1
0
 void AddSessionVariables()
 {
     Session.AddVariable("__rootPath", ScriptFileName.PackageInstallDirectory);
     Session.AddVariable("__toolsPath", ScriptFileName.GetScriptDirectory());
     Session.AddVariable("__package", Package);
     Session.AddVariable("__project", GetProject());
 }
 void AddScriptDirectoryToEnvironmentPath()
 {
     if (ScriptFileName.ScriptDirectoryExists())
     {
         string directory = ScriptFileName.GetScriptDirectory();
         AddScriptDirectoryToEnvironmentPath(directory);
     }
 }