Skip to content

Commit acfd6db

Browse files
committed
App was broken without warning by updating to System.CommandLine beta 2
1 parent 0e4b187 commit acfd6db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/TfvcMigrator/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.CommandLine;
2+
using System.CommandLine.NamingConventionBinder;
23
using System.Globalization;
34
using System.Text;
45
using LibGit2Sharp;
@@ -35,7 +36,7 @@ public static Task Main(string[] args)
3536
new Option<string?>("--pat") { Description = "Optional PAT, required to access TFVC repositories hosted on Azure DevOps Services. If not provided Default Client Credentials will be used, these are only suitable for on-premise TFS/Azure DevOps Server." },
3637
};
3738

38-
command.SetHandler(
39+
command.Handler = CommandHandler.Create(
3940
new Func<Uri, string, string, string?, int?, int?, ImmutableArray<RootPathChange>, string?, Task>(MigrateAsync));
4041

4142
return command.InvokeAsync(args);

src/TfvcMigrator/TfvcMigrator.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<PackageReference Include="LibGit2Sharp" Version="0.27.0-preview-0175" />
2525
<PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="16.170.0" />
2626
<PackageReference Include="System.CommandLine" Version="2.0.0-beta2.21617.1" />
27+
<PackageReference Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta2.21617.1" />
2728
<PackageReference Include="TaskTupleAwaiter" Version="2.0.0" />
2829
</ItemGroup>
2930

0 commit comments

Comments
 (0)