@@ -28,22 +28,25 @@ public class GitVersionTool : IGitVersionTool
2828
2929 private readonly IBuildServer buildServer ;
3030
31- public GitVersionTool ( ILog log , IGitVersionCache gitVersionCache , INextVersionCalculator nextVersionCalculator , IVariableProvider variableProvider ,
32- IGitVersionCacheKeyFactory cacheKeyFactory , IBuildServerResolver buildServerResolver ,
31+ public GitVersionTool ( ILog log , INextVersionCalculator nextVersionCalculator , IVariableProvider variableProvider ,
32+ IGitVersionCache gitVersionCache , IGitVersionCacheKeyFactory cacheKeyFactory , IBuildServerResolver buildServerResolver ,
3333 IWixVersionFileUpdater wixVersionFileUpdater , IGitVersionInformationGenerator gitVersionInformationGenerator , IAssemblyInfoFileUpdater assemblyInfoFileUpdater ,
3434 IOptions < Arguments > options , IOptions < GitVersionContext > versionContext )
3535 {
3636 this . log = log ?? throw new ArgumentNullException ( nameof ( log ) ) ;
37- this . gitVersionCache = gitVersionCache ?? throw new ArgumentNullException ( nameof ( gitVersionCache ) ) ;
37+
3838 this . nextVersionCalculator = nextVersionCalculator ?? throw new ArgumentNullException ( nameof ( nextVersionCalculator ) ) ;
3939 this . variableProvider = variableProvider ?? throw new ArgumentNullException ( nameof ( variableProvider ) ) ;
40- this . options = options ?? throw new ArgumentNullException ( nameof ( options ) ) ;
40+
4141 this . cacheKeyFactory = cacheKeyFactory ?? throw new ArgumentNullException ( nameof ( cacheKeyFactory ) ) ;
42+ this . gitVersionCache = gitVersionCache ?? throw new ArgumentNullException ( nameof ( gitVersionCache ) ) ;
4243
4344 this . wixVersionFileUpdater = wixVersionFileUpdater ?? throw new ArgumentNullException ( nameof ( wixVersionFileUpdater ) ) ;
4445 this . gitVersionInformationGenerator = gitVersionInformationGenerator ?? throw new ArgumentNullException ( nameof ( gitVersionInformationGenerator ) ) ;
4546 this . assemblyInfoFileUpdater = assemblyInfoFileUpdater ?? throw new ArgumentNullException ( nameof ( gitVersionInformationGenerator ) ) ;
4647
48+ this . options = options ?? throw new ArgumentNullException ( nameof ( options ) ) ;
49+
4750 context = versionContext . Value ;
4851 buildServer = buildServerResolver . Resolve ( ) ;
4952 }
0 commit comments