public override bool Execute() { var basePath = Path.GetDirectoryName(ProjectPath); foreach (var spr in FabricServiceReferenceFactory.Get(ProjectReferences, ServiceProjectReferences)) { string servicePath = Path.Combine(basePath, PackageLocation, spr.ServiceManifestName); AddFiles(Path.Combine(spr.ProjectDir, "pkg", Configuration), servicePath); } AddFiles(Path.Combine(basePath, "ApplicationPackageRoot", "ApplicationManifest.xml"), Path.Combine(basePath, PackageLocation, "ApplicationManifest.xml")); SourceFiles = sourcelist.Select(s => new TaskItem(s)).ToArray(); DestinationFiles = destlist.Select(s => new TaskItem(s)).ToArray(); return(true); }
public override bool Execute() { var path = Path.Combine(Path.GetDirectoryName(ProjectPath), "pkg", Configuration, "ApplicationManifest.xml"); var appManifest = FabricSerializers.AppManifestFromFile(path); appManifest.SetGitVersion(UpdateBaseVersion ? BaseVersion : appManifest.ApplicationTypeVersion, FabricServiceReferenceFactory.Get(ProjectReferences, ServiceProjectReferences), Configuration, MaxHashLength, SkipHash); FabricSerializers.SaveAppManifest(path, appManifest); return(true); }