Beispiel #1
0
    public override bool Run(string[] args)
    {
        Console.WriteLine("");
        Console.WriteLine("Ensuring packages have been created...");
        Console.WriteLine("");

        var packageName = "";

        if (Arguments.KeylessArguments.Length > 0)
        {
            packageName = Arguments.KeylessArguments[0];
            Console.WriteLine("Package name: " + packageName);
        }

        var currentVersion = CurrentNode.Properties["Version"];

        Console.WriteLine("Current version: " + currentVersion);

        var checker = new PackageChecker(new Version(currentVersion));

        if (!String.IsNullOrEmpty(packageName))
        {
            checker.Check(packageName);
        }
        else
        {
            checker.Check();
        }

        return(!IsError);
    }
 /// <summary>
 /// 创建插件包框架结构后
 /// 创建PackagePath.cs
 /// </summary>
 public static void AfterCreatePackageAction()
 {
     PackageChecker.Check();
 }