public AssemblyArtifacts FindLatestVersion() { AssemblyArtifacts pv = (from v in Versions orderby v.AddedAt descending select v).FirstOrDefault(); return(pv); }
public AssemblyArtifacts AddRevision(BuildServers.BuildArtifacts artRef) { BuildServers.BuildArtifact assemart = artRef.GetArtifact(artRef.AssemblyArtefactName); AssemblyArtifacts v = new AssemblyArtifacts() { VersionTag = artRef.VersionTag, FileLibarary = artRef.AssemblyArtefactName, FileSymbols = artRef.AssemblyArtefactNameSym, AssemblyVersion = assemart.Version, AddedAt = DateTime.UtcNow }; Name = artRef.AssemblyArtefactName; Versions.Add(v); return v; }
// TODO: add scm revision to package version public AssemblyArtifacts AddRevision(string tag, string dllName, string pdbName, string dllPath) { AssemblyArtifact dllInfo = AssemblyArtifact.Get(dllPath); AssemblyArtifacts v = new AssemblyArtifacts() { VersionTag = tag, FileLibarary = dllName, FileSymbols = pdbName, AssemblyVersion = dllInfo.Version, AddedAt = DateTime.UtcNow }; Name = dllInfo.Name; Versions.Add(v); return v; }
public AssemblyArtifacts AddRevision(BuildServers.BuildArtifacts artRef) { BuildServers.BuildArtifact assemart = artRef.GetArtifact(artRef.AssemblyArtefactName); AssemblyArtifacts v = new AssemblyArtifacts() { VersionTag = artRef.VersionTag, FileLibarary = artRef.AssemblyArtefactName, FileSymbols = artRef.AssemblyArtefactNameSym, AssemblyVersion = assemart.Version, AddedAt = DateTime.UtcNow }; Name = artRef.AssemblyArtefactName; Versions.Add(v); return(v); }
// TODO: add scm revision to package version public AssemblyArtifacts AddRevision(string tag, string dllName, string pdbName, string dllPath) { AssemblyArtifact dllInfo = AssemblyArtifact.Get(dllPath); AssemblyArtifacts v = new AssemblyArtifacts() { VersionTag = tag, FileLibarary = dllName, FileSymbols = pdbName, AssemblyVersion = dllInfo.Version, AddedAt = DateTime.UtcNow }; Name = dllInfo.Name; Versions.Add(v); return(v); }