Ejemplo n.º 1
0
        public void Process(PackageTypes packageTypes = PackageTypes.All)
        {
            if (!_initialized)
            {
                Initialize(packageTypes);
            }

            if (_processed)
            {
                return;
            }

            Event <Verbose> .Raise("PackageScript.Process", "Processing Package Creation");

            // persist the propertysheet to the msbuild model.
            _sheet.View.CopyToModel();

            Event <Verbose> .Raise("PackageScript.Process", "(copy to model, done)");

            if (packageTypes.HasFlag(PackageTypes.NuGet))
            {
                ProcessNuget();
            }

            if (packageTypes.HasFlag(PackageTypes.CoApp))
            {
                ProcessCoApp();
            }
            _processed = true;
        }
Ejemplo n.º 2
0
        public void Save(PackageTypes packageTypes, bool cleanIntermediateFiles)
        {
            if (!_processed)
            {
                Process();
            }

            if (packageTypes.HasFlag(PackageTypes.NuGet))
            {
                foreach (var nugetPackage in _nugetPackages.Values)
                {
                    nugetPackage.Save(cleanIntermediateFiles);
                }
            }
        }
Ejemplo n.º 3
0
        public void Initialize(PackageTypes packageTypes = PackageTypes.All)
        {
            if (_initialized)
            {
                return;
            }

            Event <Verbose> .Raise("PackageScript.Initialize", "Init package script");

            if (packageTypes.HasFlag(PackageTypes.NuGet))
            {
                InitializeNuget();
            }

            _initialized = true;
        }
Ejemplo n.º 4
0
        public void Save(PackageTypes packageTypes, bool cleanIntermediateFiles)
        {
            if (!_processed) {
                Process();
            }

            if (packageTypes.HasFlag(PackageTypes.NuGet)) {
                foreach (var nugetPackage in _nugetPackages.Values) {
                    nugetPackage.Save(cleanIntermediateFiles);
                }
            }
        }
Ejemplo n.º 5
0
        public void Process(PackageTypes packageTypes = PackageTypes.All)
        {
            if (!_initialized) {
                Initialize(packageTypes);
            }

            if (_processed) {
                return;
            }

            Event<Verbose>.Raise("PackageScript.Process", "Processing Package Creation");

            // persist the propertysheet to the msbuild model.
            _sheet.View.CopyToModel();

            Event<Verbose>.Raise("PackageScript.Process", "(copy to model, done)");

            if (packageTypes.HasFlag(PackageTypes.NuGet)) {
                ProcessNuget();
            }

            if(packageTypes.HasFlag(PackageTypes.CoApp)) {
                ProcessCoApp();
            }
            _processed = true;
        }
Ejemplo n.º 6
0
        public void Initialize(PackageTypes packageTypes = PackageTypes.All)
        {
            if (_initialized) {
                return;
            }

            Event<Verbose>.Raise("PackageScript.Initialize", "Init package script");

            if (packageTypes.HasFlag(PackageTypes.NuGet) ) {
               InitializeNuget();
            }

            _initialized = true;
        }