Ejemplo n.º 1
0
        public void AddArtefact(string name, string relatedFile)
        {
            AssemblyArtifact dllInfo = AssemblyArtifact.Get(relatedFile);

            dllInfo.FileName = name;
            Artefacts.Add(dllInfo);
        }
Ejemplo n.º 2
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);
        }