예제 #1
0
        public AssemblyArtifacts FindLatestVersion()
        {
            AssemblyArtifacts pv = (from v in Versions
                                    orderby v.AddedAt descending
                                    select v).FirstOrDefault();

            return(pv);
        }
예제 #2
0
 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;
 }
예제 #3
0
 // 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;
 }
예제 #4
0
        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);
        }
예제 #5
0
        // 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);
        }