Пример #1
0
        private async Task PackageProject(CancellationToken token)
        {
            var packageDefinition = Path.Combine(Context.ContentDirectory, "Photon.Publishing", "Photon.Publishing.Linux.json");

            var projectPackages = new ProjectPackageUtility(Context)
            {
                PackageDirectory = packageDirectory,
            };

            await projectPackages.Publish(packageDefinition, packageVersion, token);
        }
Пример #2
0
        private async Task CreateProjectPackage(CancellationToken token)
        {
            Context.Output.WriteLine("Creating Project Package...", ConsoleColor.White);

            try {
                var packageDefinition = Path.Combine(Context.ContentDirectory, "PhotonTasks", "PhotonTasks.json");

                await projectPackages.Publish(packageDefinition, packageVersion, token);
            }
            catch (Exception error) {
                Context.Output.WriteLine($"Failed to create Project Package! {error.UnfoldMessages()}", ConsoleColor.DarkYellow);
                throw;
            }
        }