Skip to content

Commit 199a699

Browse files
committed
Fixed build fail
1 parent b0d49df commit 199a699

File tree

4 files changed

+4
-33
lines changed

4 files changed

+4
-33
lines changed

GitVersionCore/Configuration/Init/BuildServer/AppVeyorSetup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected override string GetPrompt(Config config, string workingDirectory, IFil
8080

8181
prompt.Append(@"What sort of config template would you like generated?
8282
83-
0) Back
83+
0) Go Back
8484
1) Generate basic (gitversion + msbuild) configuration
8585
2) Generate with NuGet package publish");
8686

GitVersionCore/Configuration/Init/BuildServer/SetupBuildScripts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected override string GetPrompt(Config config, string workingDirectory, IFil
2626
2727
Want to see more? Contribute a pull request!
2828
29-
0) Back
29+
0) Go Back
3030
1) AppVeyor";
3131
}
3232

GitVersionCore/Configuration/Init/EditConfigStep.cs

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override StepResult HandleResult(string result, Queue<ConfigInitWizard
2121
steps.Enqueue(new PickBranchingStrategyStep());
2222
return StepResult.Ok();
2323

24-
case "4":
24+
case "3":
2525
steps.Enqueue(new SetNextVersion());
2626
return StepResult.Ok();
2727

@@ -62,34 +62,4 @@ protected override string DefaultResult
6262
get { return null; }
6363
}
6464
}
65-
66-
public class SetNextVersion : ConfigInitWizardStep
67-
{
68-
protected override StepResult HandleResult(string result, Queue<ConfigInitWizardStep> steps, Config config, string workingDirectory, IFileSystem fileSystem)
69-
{
70-
if (string.IsNullOrEmpty(result))
71-
{
72-
steps.Enqueue(new EditConfigStep());
73-
return StepResult.Ok();
74-
}
75-
76-
SemanticVersion semVer;
77-
if (!SemanticVersion.TryParse(result, string.Empty, out semVer))
78-
return StepResult.InvalidResponseSelected();
79-
80-
config.NextVersion = semVer.ToString("t");
81-
steps.Enqueue(new EditConfigStep());
82-
return StepResult.Ok();
83-
}
84-
85-
protected override string GetPrompt(Config config, string workingDirectory, IFileSystem fileSystem)
86-
{
87-
return @"What would you like to set the next version to (enter nothing to cancel)?";
88-
}
89-
90-
protected override string DefaultResult
91-
{
92-
get { throw new System.NotImplementedException(); }
93-
}
94-
}
9565
}

GitVersionCore/GitVersionCore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
<Compile Include="Configuration\Init\BuildServer\AppVeyorSetup.cs" />
7878
<Compile Include="Configuration\Init\BuildServer\SetupBuildScripts.cs" />
7979
<Compile Include="Configuration\Init\SetConfig\AssemblyVersioningSchemeSetting.cs" />
80+
<Compile Include="Configuration\Init\SetNextVersion.cs" />
8081
<Compile Include="Configuration\Init\Wizard\ConfigInitWizard.cs" />
8182
<Compile Include="Configuration\ConfigSerialiser.cs" />
8283
<Compile Include="Configuration\ConfigurationProvider.cs" />

0 commit comments

Comments
 (0)