From efcdc50f5b72c69674fe06f8f5cf795e6eb1c48d Mon Sep 17 00:00:00 2001 From: Thomas Ibel Date: Tue, 19 Nov 2024 11:46:21 +0100 Subject: [PATCH] Stop using deprecated Microsoft.Extensions.CommandLineUtils. --- Directory.Packages.props | 2 +- src/Tmds.DBus.Tool/CodeGenCommand.cs | 4 ++-- src/Tmds.DBus.Tool/Command.cs | 2 +- src/Tmds.DBus.Tool/ListCommand.cs | 4 ++-- src/Tmds.DBus.Tool/MonitorCommand.cs | 2 +- src/Tmds.DBus.Tool/Program.cs | 2 +- src/Tmds.DBus.Tool/Tmds.DBus.Tool.csproj | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 7b226976..8f66c4b9 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -14,7 +14,7 @@ - + diff --git a/src/Tmds.DBus.Tool/CodeGenCommand.cs b/src/Tmds.DBus.Tool/CodeGenCommand.cs index c198f5ce..6e96c4f9 100644 --- a/src/Tmds.DBus.Tool/CodeGenCommand.cs +++ b/src/Tmds.DBus.Tool/CodeGenCommand.cs @@ -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; @@ -234,7 +234,7 @@ class CodeGenArguments public string OutputFileName { get; set; } public IEnumerable SkipInterfaces { get; set; } public Dictionary Interfaces { get; set; } - public List Files { get; set; } + public IReadOnlyList Files { get; set; } public bool NoInternalsVisibleTo { get; set; } public Accessibility TypesAccessModifier {get; set;} public bool ProtocolApi { get; set; } diff --git a/src/Tmds.DBus.Tool/Command.cs b/src/Tmds.DBus.Tool/Command.cs index abadb3ab..b9afdba1 100644 --- a/src/Tmds.DBus.Tool/Command.cs +++ b/src/Tmds.DBus.Tool/Command.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.CommandLineUtils; +using McMaster.Extensions.CommandLineUtils; using Tmds.DBus.Protocol; namespace Tmds.DBus.Tool diff --git a/src/Tmds.DBus.Tool/ListCommand.cs b/src/Tmds.DBus.Tool/ListCommand.cs index a392bbab..dfebcc08 100644 --- a/src/Tmds.DBus.Tool/ListCommand.cs +++ b/src/Tmds.DBus.Tool/ListCommand.cs @@ -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 @@ -146,7 +146,7 @@ public bool Visit(string path, XElement nodeXml) } } - private async Task ListInterfacesAsync(string address, string service, string path, bool recurse, List files) + private async Task ListInterfacesAsync(string address, string service, string path, bool recurse, IReadOnlyList files) { var visitor = new InterfacesVisitor(); if (service != null) diff --git a/src/Tmds.DBus.Tool/MonitorCommand.cs b/src/Tmds.DBus.Tool/MonitorCommand.cs index 70888848..47f61202 100644 --- a/src/Tmds.DBus.Tool/MonitorCommand.cs +++ b/src/Tmds.DBus.Tool/MonitorCommand.cs @@ -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; diff --git a/src/Tmds.DBus.Tool/Program.cs b/src/Tmds.DBus.Tool/Program.cs index a681bcf4..b575d2da 100644 --- a/src/Tmds.DBus.Tool/Program.cs +++ b/src/Tmds.DBus.Tool/Program.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.CommandLineUtils; +using McMaster.Extensions.CommandLineUtils; namespace Tmds.DBus.Tool { diff --git a/src/Tmds.DBus.Tool/Tmds.DBus.Tool.csproj b/src/Tmds.DBus.Tool/Tmds.DBus.Tool.csproj index 94932252..116bb0c6 100644 --- a/src/Tmds.DBus.Tool/Tmds.DBus.Tool.csproj +++ b/src/Tmds.DBus.Tool/Tmds.DBus.Tool.csproj @@ -21,7 +21,7 @@ - +