Ejemplo n.º 1
0
        private static void FromTo(CommandLineValues aCommandLineValues)
        {
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.TargetPath))
            {
                TargetPath     = aCommandLineValues.TargetPath;
                TargetDir      = aCommandLineValues.TargetDir;
                TargetExt      = aCommandLineValues.TargetExt;
                TargetFileName = aCommandLineValues.TargetFileName;
                TargetName     = aCommandLineValues.TargetName;
            }
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.SolutionPath))
            {
                SolutionPath     = aCommandLineValues.SolutionPath;
                SolutionDir      = aCommandLineValues.SolutionDir;
                SolutionExt      = aCommandLineValues.SolutionExt;
                SolutionFileName = aCommandLineValues.SolutionFileName;
                SolutionName     = aCommandLineValues.SolutionName;
            }
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.ProjectPath))
            {
                ProjectPath     = aCommandLineValues.ProjectPath;
                ProjectDir      = aCommandLineValues.ProjectDir;
                ProjectExt      = aCommandLineValues.ProjectExt;
                ProjectFileName = aCommandLineValues.ProjectFileName;
                ProjectName     = aCommandLineValues.ProjectName;
                // XmlFileTweaker assignment
#warning Don't forget to fiddle this value when dealing with Full Framework and UAP projects. One needs the value of the AssemblyInfo file to fiddle with.
                ProjectPath.SetTextFilePath();
            }
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.ConfigurationName))
            {
                ConfigurationName = aCommandLineValues.ConfigurationName;
            }
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.PushToDestination))
            {
                PushToDestination = aCommandLineValues.PushToDestination;
            }
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.Verbosity))
            {
                Verbosity      = aCommandLineValues.Verbosity;
                VerbosityLevel = aCommandLineValues.VerbosityLevel;
            }
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.InternalVersionSelector))
            {
                InternalVersionSelector = aCommandLineValues.InternalVersionSelector;
                SelectedVersion         = aCommandLineValues.SelectedVersion;
            }
            if (!String.IsNullOrWhiteSpace(aCommandLineValues.OverrideVersion))
            {
                OverrideVersion = aCommandLineValues.OverrideVersion;
            }
            MergeDeletions           = aCommandLineValues.MergeDeletes;
            PerformDeletes           = aCommandLineValues.PerformDeletes;
            CommandLineSettings.Wait = aCommandLineValues.Wait;
            CommandLineSettings.Help = aCommandLineValues.Help;
            //HelpSection = aCommandLineValues.HelpSection;
            NoOp            = aCommandLineValues.NoOp;
            NoSpawn         = aCommandLineValues.NoSpawn;
            ShowEnvironment = aCommandLineValues.ShowEnvironment;
        }
Ejemplo n.º 2
0
 public static void AssignToStatic(this CommandLineValues aCommandLineValues)
 {
     FromTo(aCommandLineValues);
 }