示例#1
0
        public TrackReleaseBranchesVersionStrategy(IRepositoryMetadataProvider repositoryMetadataProvider, Lazy <GitVersionContext> versionContext)
            : base(versionContext)
        {
            this.repositoryMetadataProvider = repositoryMetadataProvider ?? throw new ArgumentNullException(nameof(repositoryMetadataProvider));

            releaseVersionStrategy      = new VersionInBranchNameVersionStrategy(repositoryMetadataProvider, versionContext);
            taggedCommitVersionStrategy = new TaggedCommitVersionStrategy(repositoryMetadataProvider, versionContext);
        }
示例#2
0
        public TrackReleaseBranchesVersionStrategy(IRepositoryStore repositoryStore, Lazy <GitVersionContext> versionContext)
            : base(versionContext)
        {
            this.repositoryStore = repositoryStore ?? throw new ArgumentNullException(nameof(repositoryStore));

            releaseVersionStrategy      = new VersionInBranchNameVersionStrategy(repositoryStore, versionContext);
            taggedCommitVersionStrategy = new TaggedCommitVersionStrategy(repositoryStore, versionContext);
        }
 public TrackReleaseBranchesVersionStrategy(ILog log)
 {
     releaseVersionStrategy      = new VersionInBranchNameVersionStrategy();
     taggedCommitVersionStrategy = new TaggedCommitVersionStrategy(log);
 }