Пример #1
0
        private static NuGetPackSpecification BuildPackSpecification(Action <NuGetPackCmdConfigurator> packConfigurator)
        {
            var configurator = new NuGetPackCmdConfigurator();

            packConfigurator(configurator);
            return(configurator.BuildSpecification());
        }
Пример #2
0
 private static Action BuildNugetPackRunner(NuGetPackCmdConfigurator packConfiguration)
 {
     var runProgramBuilder = new RunProgramActionBuilder();
     return runProgramBuilder.ConfigureAction(c =>
         {
             c.Executable = NuGetExePath;
             c.Arguments("pack", packConfiguration.NuSpec, "-OutputDirectory", packConfiguration.OutputDirectory);
         });
 }
Пример #3
0
 private static NuGetPackCmdConfigurator ConfigureNugetPackAction(Action<NuGetPackCmdConfigurator> packConfigurator)
 {
     var configurator = new NuGetPackCmdConfigurator();
     packConfigurator(configurator);
     return configurator;
 }
Пример #4
0
 private static NuGetPackSpecification BuildPackSpecification(Action<NuGetPackCmdConfigurator> packConfigurator)
 {
     var configurator = new NuGetPackCmdConfigurator();
     packConfigurator(configurator);
     return configurator.BuildSpecification();
 }