public void Restore(FilePath projectFile, XamarinComponentRestoreSettings settings)
        {
            var builder = new ProcessArgumentBuilder();

            builder.Append("restore");
            builder.AppendQuoted(projectFile.MakeAbsolute(_cakeEnvironment).FullPath);

            if (!string.IsNullOrEmpty(settings.Email))
            {
                builder.Append("--user={0}", settings.Email);
            }

            if (!string.IsNullOrEmpty(settings.Password))
            {
                builder.Append("--password={0}", settings.Password);
            }

            Run(settings, builder);
        }
Beispiel #2
0
 public static void RestoreComponents (this ICakeContext context, FilePath solutionFile, XamarinComponentRestoreSettings settings = null)
 {
     var runner = new XamarinComponentRunner (context.FileSystem, context.Environment, context.ProcessRunner, context.Globber);
     runner.Restore (solutionFile, settings ?? new XamarinComponentRestoreSettings ());
 }
        public static void RestoreComponents(this ICakeContext context, FilePath solutionFile, XamarinComponentRestoreSettings settings = null)
        {
            var runner = new XamarinComponentRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Restore(solutionFile, settings ?? new XamarinComponentRestoreSettings());
        }