ABP 项目重命名解决方案
jesn / abprename Goto Github PK
View Code? Open in Web Editor NEWABP 项目重命名
ABP 项目重命名
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;
}
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.