private static string GetOutputPath(IEnvironment environment, IDeploymentSettingsManager perDeploymentSettings) { string targetPath = perDeploymentSettings.GetTargetPath(); if (!String.IsNullOrEmpty(targetPath)) { targetPath = targetPath.Trim('\\', '/'); return Path.GetFullPath(Path.Combine(environment.WebRootPath, targetPath)); } return environment.WebRootPath; }