File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 8
8
using GitVersion . VersionCalculation ;
9
9
using GitVersion . VersionCalculation . BaseVersionCalculators ;
10
10
using Microsoft . Extensions . Options ;
11
+ using GitVersion . Configuration . Init ;
12
+ using GitVersion . Extensions ;
11
13
12
14
namespace GitVersion
13
15
{
@@ -39,6 +41,8 @@ public void RegisterTypes(IServiceCollection services)
39
41
RegisterBuildServers ( services ) ;
40
42
41
43
RegisterVersionStrategies ( services ) ;
44
+
45
+ services . AddModule ( new GitVersionInitModule ( ) ) ;
42
46
}
43
47
44
48
private static IConfigFileLocator GetConfigFileLocator ( IServiceProvider sp )
Original file line number Diff line number Diff line change 1
1
using System . Threading . Tasks ;
2
- using GitVersion . Configuration . Init ;
3
2
using GitVersion . Extensions ;
4
3
using Microsoft . Extensions . Configuration ;
5
4
using Microsoft . Extensions . DependencyInjection ;
@@ -23,7 +22,6 @@ private static IHostBuilder CreateHostBuilder(string[] args) =>
23
22
} )
24
23
. ConfigureServices ( ( hostContext , services ) =>
25
24
{
26
- services . AddModule ( new GitVersionInitModule ( ) ) ;
27
25
services . AddModule ( new GitVersionCoreModule ( ) ) ;
28
26
services . AddModule ( new GitVersionExeModule ( ) ) ;
29
27
You can’t perform that action at this time.
0 commit comments