Exemple #1
0
    private static void CreateProject(string arg1)
    {
        var err = Conf.CheckServiceName(arg1);

        if (err != null)
        {
            Libs.Abort($"[svc.critical] Bad project name `{arg1}`: {err}");
        }

        Libs.CopyDir($"{Libs.BinDir}..\\samples\\csharp-version", arg1, ".log");
        Libs.ReplaceStringInFile($"{arg1}\\svc.conf", "easy-service", arg1);
        Console.WriteLine($"Create an Easy-Service project in {arg1}");
    }