Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Self-contained Windows build crashes on "Open Explorer": System.Diagnostics.Process not found

Chiusa Adatta ai principianti
#4,277 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend, desktop

Direzione di ricerca

Inizia con ShellHelper.OpenFolder e la configurazione di pubblicazione autonoma per Windows; lo stack trace e l’assembly System.Diagnostics.Process mancante indicano quel percorso. Confronta le dipendenze pubblicate con il codice che avvia Explorer, poi verifica che il pulsante apra la cartella salvata in una build autonoma per Windows. Il payload non indica alcun file di test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug
Steps to reproduce
  1. Downloaded ILSpy_windows_selfcontained_11.1.0.9782-x64.zip from the 11.1 release, unzipped it and ran ILSpy.exe
  2. Opened a .NET Framework 4.7.2 Windows Forms app (.exe) with File > Open
  3. Right-clicked it in the tree and chose Save Code, then picked a folder
  4. "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)
Image
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.
Lingua principale
C#
Stelle
26.8k
Fork
3.8k
Merge medio
1g 4h
PR unite (30g)
69

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di icsharpcode/ILSpy

Tutte le issue di icsharpcode/ILSpy

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.