public ProcessStartInfo Install(ConanProject project, ConanConfiguration configuration, ConanGeneratorType generator, ConanBuildType build, bool update, Core.IErrorListService errorListService) { string ProcessArgument(string name, string value) => $"-s {name}={Escape(value)}"; var arguments = string.Empty; string profile = project.getProfile(configuration, errorListService); if (profile != null) { string generatorName = generator.ToString(); arguments = $"install {Escape(project.Path)} " + $"-g {generatorName} " + $"--install-folder {Escape(configuration.InstallPath)} " + $"--profile {Escape(profile)}" + $"{BuildOptions(build, update)}"; } else { string generatorName = generator.ToString(); var settingValues = new[]
public Task <Process> Install(ConanProject project, ConanConfiguration configuration, ConanGeneratorType generator, ConanBuildType build, bool update) { string ProcessArgument(string name, string value) => $"-s {name}={Escape(value)}"; var arguments = string.Empty; if (_conanSettings != null) { var installConfig = _conanSettings.ConanCommands.FirstOrDefault(c => c.Name.Equals("install")); arguments = installConfig.Args; } else { string generatorName = generator.ToString(); var settingValues = new[]
public Task <Process> Install(ConanProject project, ConanConfiguration configuration, ConanGeneratorType generator, ConanBuildType build, bool update, Core.IErrorListService errorListService) { string ProcessArgument(string name, string value) => $"-s {name}={Escape(value)}"; var arguments = string.Empty; string profile = project.getProfile(configuration, errorListService); if (profile != null) { string generatorName = generator.ToString(); string options = ""; if (build != ConanBuildType.none) { options += " --build " + build.ToString(); } if (update) { options += " --update"; } arguments = $"install {Escape(project.Path)} " + $"-g {generatorName} " + $"--install-folder {Escape(configuration.InstallPath)} " + $"--profile {Escape(profile)}" + $"{options}"; } else if (_conanSettings != null) { var installConfig = _conanSettings.ConanCommands.FirstOrDefault(c => c.Name.Equals("install")); arguments = installConfig.Args; } else { string generatorName = generator.ToString(); var settingValues = new[]