Skip to content

Commit 1004b75

Browse files
authored
Merge pull request #3790 from arturcic/main
Extract GitVersion Configuration into a separate project
2 parents 3f9fc42 + ad16f2a commit 1004b75

File tree

78 files changed

+103
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+103
-45
lines changed

src/GitVersion.App.Tests/GitVersion.App.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
55
</ItemGroup>
66
<ItemGroup>
7+
<ProjectReference Include="..\GitVersion.Configuration\GitVersion.Configuration.csproj" />
78
<ProjectReference Include="..\GitVersion.Core\GitVersion.Core.csproj" />
89
<ProjectReference Include="..\GitVersion.App\GitVersion.App.csproj" />
910
</ItemGroup>

src/GitVersion.App/GitVersion.App.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
<ItemGroup>
2929
<ProjectReference Include="..\GitVersion.BuildAgents\GitVersion.BuildAgents.csproj" />
30+
<ProjectReference Include="..\GitVersion.Configuration\GitVersion.Configuration.csproj" />
3031
<ProjectReference Include="..\GitVersion.LibGit2Sharp\GitVersion.LibGit2Sharp.csproj" />
3132
<ProjectReference Include="..\GitVersion.Core\GitVersion.Core.csproj" />
3233
<ProjectReference Include="..\GitVersion.Output\GitVersion.Output.csproj" />

src/GitVersion.App/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using GitVersion.Agents;
2+
using GitVersion.Configuration;
23
using GitVersion.Extensions;
34
using GitVersion.Output;
45
using Microsoft.Extensions.Configuration;
@@ -26,6 +27,7 @@ private IHostBuilder CreateHostBuilder(string[] args) =>
2627
services.AddModule(new GitVersionCoreModule());
2728
services.AddModule(new GitVersionLibGit2SharpModule());
2829
services.AddModule(new GitVersionBuildAgentsModule());
30+
services.AddModule(new GitVersionConfigurationModule());
2931
services.AddModule(new GitVersionOutputModule());
3032
services.AddModule(new GitVersionAppModule());
3133

0 commit comments

Comments
 (0)