Fix() public method

public Fix ( ) : void
return void
Esempio n. 1
0
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("Please provide a path to an umbraco package xml file.");
                return;
            }
            if (args.Length > 1)
            {
                Console.WriteLine("Only one arg is accepted.");
                return;
            }

            string umbracoPackageFile = args[0];

            if (string.IsNullOrEmpty(umbracoPackageFile))
            {
                Console.WriteLine("Please provide a path to an umbraco package xml file.");
                umbracoPackageFile = Console.ReadLine();
            }
            Assert.EnsureFileExist(umbracoPackageFile, "umbracoPackageFile");

            Fixer fixer = new Fixer(umbracoPackageFile);

            fixer.Fix();
            return;
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("Please provide a path to an umbraco package xml file.");
                return;
            }
            if (args.Length > 1)
            {
                Console.WriteLine("Only one arg is accepted.");
                return;
            }

            string umbracoPackageFile = args[0];

            if (string.IsNullOrEmpty(umbracoPackageFile))
            {
                Console.WriteLine("Please provide a path to an umbraco package xml file.");
                umbracoPackageFile = Console.ReadLine();
            }
            Assert.EnsureFileExist(umbracoPackageFile, "umbracoPackageFile");

            Fixer fixer = new Fixer(umbracoPackageFile);
            fixer.Fix();
            return;
        }