public static SubprocessResult Packaging(PackageParms objPackageParms) { CommandArgs objCommandArgs = new CommandArgs(); objCommandArgs.command = "cmd.exe"; objCommandArgs.Args = GetPackageArgs(objPackageParms); return Subprocess.RunProgram(objCommandArgs); }
private static string GetPackageArgs(PackageParms objPackageParms) { string packageCommand = string.Empty; string pacCommand = ConfigurationManager.AppSettings["Package"].ToString(); packageCommand = string.Format(pacCommand, GetTargetCommand(), objPackageParms.ProjectPath, objPackageParms.ConfigurationType, objPackageParms.Platform, objPackageParms.PackageLocation); return packageCommand; }
public string Deploy_Click() { PackageParms objPackageParms = new PackageParms(); ProjectDetails _project = _repository.GetProjectDetails(1); objPackageParms.ProjectPath = ""; objPackageParms.ConfigurationType = _project.Configuration; objPackageParms.Platform = _project.PlatForm; objPackageParms.PackageLocation = @"C:\MyPackage\Package.Zip"; DotNetPackage.Packaging(objPackageParms); return "Success"; }