예제 #1
0
 public static SubprocessResult Packaging(PackageParms objPackageParms)
 {
     CommandArgs objCommandArgs = new CommandArgs();
     objCommandArgs.command = "cmd.exe";
     objCommandArgs.Args = GetPackageArgs(objPackageParms);
     return Subprocess.RunProgram(objCommandArgs);
 }
예제 #2
0
 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;
 }
예제 #3
0
 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";
 }