GithubHelp home page GithubHelp logo

abprename's Introduction

ABPRename

ABP 项目重命名解决方案

abprename's People

Contributors

794382693 avatar jesn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

abprename's Issues

Translation

Hi,

Translation en:

`

class Program
{
    private static bool isFirstRun = true;
    //=> Whether to create a backup
    private static bool _createBackup = true;
    //=> Project src directory
    private static string _folder = "";

    //=> Original project company name
    private static string _companyNamePlaceHolder = "";
    //=> Original project name
    private static string _projectNamePlaceHolder = "";
    //=> New project company name
    private static string _companyName = "";
    //=> New project name
    private static string _projectName = "";

    static void Main( string[] args )
    {
        if ( !isFirstRun )
        {
            if ( _folder == "" )
            {
                Console.WriteLine( "Project 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( "Replace...! Replace complete auto close window" );
        SolutionRenamer app = new SolutionRenamer( _folder, _companyNamePlaceHolder, _projectNamePlaceHolder, _companyName, _projectName );
        app.CreateBackup = _createBackup; // Whether to create a backup
        app.Run();
    }


    public static void getParam()
    {
        Console.WriteLine( "Please enter the src root directory that requires the ABP project:" );
        _folder = Console.ReadLine();

        Console.WriteLine( "Do you create a backup? (true create backup; false does not create backup)" );
        _createBackup = Convert.ToBoolean( Console.ReadLine() );

        Console.WriteLine( "Please enter the company name of the original project (if not, it can be empty):" );
        _companyNamePlaceHolder = Console.ReadLine();
        Console.WriteLine( "Please enter the project name of the original project:" );
        _projectNamePlaceHolder = Console.ReadLine();

        Console.WriteLine( "Please enter the company name of the new project (if not, it can be empty):" );
        _companyName = Console.ReadLine();
        Console.WriteLine( "Please enter the project name of the new project:" );
        _projectName = Console.ReadLine();

        isFirstRun = false;
    }

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.