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; }
public void Save(PackageTypes packageTypes, bool cleanIntermediateFiles) { if (!_processed) { Process(); } if (packageTypes.HasFlag(PackageTypes.NuGet)) { foreach (var nugetPackage in _nugetPackages.Values) { nugetPackage.Save(cleanIntermediateFiles); } } }
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; }
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; }
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; }