Self-contained Windows build crashes on "Open Explorer": System.Diagnostics.Process not found
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Start with ShellHelper.OpenFolder and the self-contained Windows publish configuration; the stack trace and missing System.Diagnostics.Process assembly point to that path. Compare the published dependencies with the code that launches Explorer, then verify the button opens the saved folder in a self-contained Windows build. The payload does not name a test file.
Written by the indexing model from the issue text.
Description
Steps to reproduce
- Downloaded ILSpy_windows_selfcontained_11.1.0.9782-x64.zip from the 11.1 release, unzipped it and ran ILSpy.exe
- Opened a .NET Framework 4.7.2 Windows Forms app (.exe) with File > Open
- Right-clicked it in the tree and chose Save Code, then picked a folder
- "Decompilation complete" appeared with an "Open Explorer" button. Clicked the button
Expected: File Explorer opens the folder the code was saved to.
Actual: An "ILSpy — unhandled exception" dialog appears. The code itself was saved correctly; only the Open Explorer button fails.
Error message shown
System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Process, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Diagnostics.Process, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at ICSharpCode.ILSpy.Util.ShellHelper.OpenFolder(String path)
at ICSharpCode.ILSpy.Util.ShellHelper.OpenFolder(String path)
at ICSharpCode.ILSpy.SmartTextOutputExtensions.<>c__DisplayClass1_0.<AddOpenFolderButton>b__0(Object _, RoutedEventArgs _)
at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e)
at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e)
at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e)
at Avalonia.Controls.Button.OnClick()
at Avalonia.Controls.Button.OnPointerReleased(PointerReleasedEventArgs e)
at Avalonia.Reactive.LightweightObservableBase`1.PublishNext(T value)
at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e)
at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e)
at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e)
at Avalonia.Input.MouseDevice.MouseUp(IMouseDevice device, UInt64 timestamp, IInputRoot root, Point p, PointerPointProperties props, KeyModifiers inputModifiers, IInputElement hitTest)
at Avalonia.Input.MouseDevice.ProcessRawEvent(RawPointerEventArgs e)
at Avalonia.Threading.Dispatcher.Send(SendOrPostCallback action, Object arg, Nullable`1 priority)
Details
- Product in use: ILSpy (self-contained Windows x64 zip)
- Version in use: 11.1.0.9782
- OS: Windows x64
- System.Diagnostics.Process.dll present in the ILSpy folder: No
- ILSpy.deps.json mentions System.Diagnostics.Process: No (so the publish itself seems to have left it out, not the zipping)
- Possibly related: #4055 (same ShellHelper.OpenFolder code path, different failure)
- Happy to help test a fix.
- Dominant language
- C#
- Stars
- 26.8k
- Forks
- 3.8k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 68
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from icsharpcode/ILSpy
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
icsharpcode/ILSpy#4275 ·
Maintainers usually reply within 1 day
-
Bug Decompiler
Difficulty 4/5 3-5 days Newbie friendliness 52/100
icsharpcode/ILSpy#4280 · 1 comment ·
Maintainers usually reply within 1 day
-
Bug Decompiler
Difficulty 3/5 1-2 days Newbie friendliness 66/100
icsharpcode/ILSpy#4279 ·
Maintainers usually reply within 1 day
-
Bug Decompiler
Difficulty 4/5 3-5 days Newbie friendliness 45/100
icsharpcode/ILSpy#4278 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
icsharpcode/ILSpy#4272 ·
Maintainers usually reply within 1 day
All issues in icsharpcode/ILSpy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
k2-fsa/sherpa-onnx#4098 ·
Maintainers usually reply within 2 days
-
bug effort:S P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nightscout/nocturne#2633 ·
Maintainers usually reply within 1 day
-
enhancement good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
is:refactor
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day