Exemplo n.º 1
0
        static void Main(string[] args)
        {
            if (!isFirstRun)
            {
                if (_folder == "")
                {
                    Console.WriteLine("项目地址不能为空!,请重新录入!");
                    getParam();
                }
                if (_projectNamePlaceHolder == "" || _projectName == "")
                {
                    Console.WriteLine("原有项目名称和新项目名称不能为空,请重新输入");
                    getParam();
                }
            }
            else
            {
                getParam();
            }

            Console.WriteLine("替换中...! 替换完成自动关闭窗口");
            SolutionRenamer app = new SolutionRenamer(_folder, _companyNamePlaceHolder, _projectNamePlaceHolder, _companyName, _projectName);
            app.CreateBackup = _createBackup;//是否创建备份
            app.Run();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            if (!isFirstRun)
            {
                if (_folder == "")
                {
                    Console.WriteLine("Item address cannot be empty!, please re-enter!");
                    getParam();
                }
                if (_projectNamePlaceHolder == "" || _projectName == "")
                {
                    Console.WriteLine("The original project name and new project name cannot be empty, please re-enter");
                    getParam();
                }
            }
            else
            {
                getParam();
            }

            Console.WriteLine("Replacement...! Replacement completes automatic closing of the window");
            SolutionRenamer app = new SolutionRenamer(_folder, _companyNamePlaceHolder, _projectNamePlaceHolder, _companyName, _projectName);

            app.CreateBackup = _createBackup;//Whether to create a backup
            app.Run();
        }