Skip to content

Commit

Permalink
Fix bug in AddIn that causes ILSpy to infinitely be asked to load nug…
Browse files Browse the repository at this point in the history
…et packages.
  • Loading branch information
siegfriedpammer committed Sep 17, 2019
1 parent d2f7258 commit 37eae3d
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 109 deletions.
2 changes: 2 additions & 0 deletions ILSpy.AddIn/Commands/OpenReferenceCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ protected override void OnExecute(object sender, EventArgs e)
OpenAssembliesInILSpy(parameters);
else
owner.ShowMessage("Could not find reference '{0}', please ensure the project and all references were built correctly!", reference.Name);
return;
}

// Handle NuGet references
var nugetRefItem = NuGetReferenceForILSpy.Detect(itemObject);
if (nugetRefItem != null) {
OpenAssembliesInILSpy(nugetRefItem.GetILSpyParameters());
return;
}

// Handle project references
Expand Down
Loading

0 comments on commit 37eae3d

Please sign in to comment.