From cd6805d1e190b3ef43178817f722da68c2c104f5 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Sun, 26 Apr 2026 09:21:34 +0200 Subject: [PATCH] =?UTF-8?q?Debugger=20Agent=20Workflow:=20Bug:=20InvalidCa?= =?UTF-8?q?stException=20when=20"Loading..."=20=E2=80=A6=20(#3720)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Debugger Agent Workflow: Bug: InvalidCastException when "Loading..." node is selected * --source instead of --add-source for dotnet tool install dotnet-format --- .github/workflows/build-ilspy.yml | 2 +- ILSpy/Analyzers/AnalyzerTreeViewModel.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-ilspy.yml b/.github/workflows/build-ilspy.yml index fa7d05887..58fcdefe1 100644 --- a/.github/workflows/build-ilspy.yml +++ b/.github/workflows/build-ilspy.yml @@ -48,7 +48,7 @@ jobs: env: DOTNET_FORMAT_VERSION: 10.0.100-rtm.25531.102 DOTNET_FORMAT_SOURCE: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport/nuget/v3/index.json - run: dotnet tool install -g dotnet-format --version "${{env.DOTNET_FORMAT_VERSION}}" --add-source "${{env.DOTNET_FORMAT_SOURCE}}" + run: dotnet tool install -g dotnet-format --version "${{env.DOTNET_FORMAT_VERSION}}" --source "${{env.DOTNET_FORMAT_SOURCE}}" - name: Install wix (locked version) run: dotnet tool install --global wix --version 6.0.2 diff --git a/ILSpy/Analyzers/AnalyzerTreeViewModel.cs b/ILSpy/Analyzers/AnalyzerTreeViewModel.cs index 30ef87c99..5e8a975c2 100644 --- a/ILSpy/Analyzers/AnalyzerTreeViewModel.cs +++ b/ILSpy/Analyzers/AnalyzerTreeViewModel.cs @@ -27,6 +27,7 @@ using ICSharpCode.ILSpy.Analyzers.TreeNodes; using ICSharpCode.ILSpy.AssemblyTree; using ICSharpCode.ILSpy.TreeNodes; using ICSharpCode.ILSpy.ViewModels; +using ICSharpCode.ILSpyX.TreeView; using TomsToolbox.Wpf; @@ -51,9 +52,9 @@ namespace ICSharpCode.ILSpy.Analyzers public ICommand AnalyzeCommand => new DelegateCommand(AnalyzeSelected); - private AnalyzerTreeNode[] selectedItems = []; + private SharpTreeNode[] selectedItems = []; - public AnalyzerTreeNode[] SelectedItems { + public SharpTreeNode[] SelectedItems { get => selectedItems ?? []; set { if (SelectedItems.SequenceEqual(value))