public void SetupCodeTreeTemplates(string pathToCodeTreeTemplates) { if (LocalFileSystem.DirectoryExists(pathToCodeTreeTemplates)) { LocalFileSystem.CopyDirectory(pathToCodeTreeTemplates, TargetFileSystem, InstallationPath); IEnumerable <string> configFileTemplatess = LocalFileSystem.EnumerateFiles(pathToCodeTreeTemplates, recursive: true); foreach (string configFileTemplate in configFileTemplatess) { string configRelativePath = BaseFileSystem.GetRelativePath(LocalFileSystem, pathToCodeTreeTemplates, configFileTemplate); string configPath = BaseFileSystem.CombinePaths(InstallationPath, configRelativePath); EnvironmentHelper.ExpandEnvironmentVariablesInConfig(configPath, TargetFileSystem); } } }