Skip to content

Commit

Permalink
Stop using deprecated Microsoft.Extensions.CommandLineUtils.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibel authored Nov 19, 2024
1 parent b35e0ec commit efcdc50
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- Tmds.DBus.Tool dependencies -->
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.8.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.8.0" />
<PackageVersion Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
<PackageVersion Include="McMaster.Extensions.CommandLineUtils" Version="4.1.1" />

<!-- Test dependencies -->
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
Expand Down
4 changes: 2 additions & 2 deletions src/Tmds.DBus.Tool/CodeGenCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.Extensions.CommandLineUtils;
using McMaster.Extensions.CommandLineUtils;
using Microsoft.CodeAnalysis;
using Tmds.DBus.Protocol;

Expand Down Expand Up @@ -234,7 +234,7 @@ class CodeGenArguments
public string OutputFileName { get; set; }
public IEnumerable<string> SkipInterfaces { get; set; }
public Dictionary<string, string> Interfaces { get; set; }
public List<string> Files { get; set; }
public IReadOnlyList<string> Files { get; set; }
public bool NoInternalsVisibleTo { get; set; }
public Accessibility TypesAccessModifier {get; set;}
public bool ProtocolApi { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Tmds.DBus.Tool/Command.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Extensions.CommandLineUtils;
using McMaster.Extensions.CommandLineUtils;
using Tmds.DBus.Protocol;

namespace Tmds.DBus.Tool
Expand Down
4 changes: 2 additions & 2 deletions src/Tmds.DBus.Tool/ListCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.Extensions.CommandLineUtils;
using McMaster.Extensions.CommandLineUtils;
using Tmds.DBus.Protocol;

namespace Tmds.DBus.Tool
Expand Down Expand Up @@ -146,7 +146,7 @@ public bool Visit(string path, XElement nodeXml)
}
}

private async Task ListInterfacesAsync(string address, string service, string path, bool recurse, List<string> files)
private async Task ListInterfacesAsync(string address, string service, string path, bool recurse, IReadOnlyList<string> files)
{
var visitor = new InterfacesVisitor();
if (service != null)
Expand Down
2 changes: 1 addition & 1 deletion src/Tmds.DBus.Tool/MonitorCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.CommandLineUtils;
using McMaster.Extensions.CommandLineUtils;
using Tmds.DBus.Protocol;

namespace Tmds.DBus.Tool;
Expand Down
2 changes: 1 addition & 1 deletion src/Tmds.DBus.Tool/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Extensions.CommandLineUtils;
using McMaster.Extensions.CommandLineUtils;

namespace Tmds.DBus.Tool
{
Expand Down
2 changes: 1 addition & 1 deletion src/Tmds.DBus.Tool/Tmds.DBus.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" />
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" />
<ProjectReference Include="../Tmds.DBus.Protocol/Tmds.DBus.Protocol.csproj" />
</ItemGroup>
</Project>

0 comments on commit efcdc50

Please sign in to comment.