Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ArgumentOutOfRangeException on unexpected file in GAC #2960

Merged
merged 1 commit into from
May 28, 2023

Conversation

ificator
Copy link
Contributor

@ificator ificator commented Apr 10, 2023

Problem

Somehow on my machine I end up with assemblies in an unexpected location in the GAC. It's most likely due to some legacy deployment script I cannot track down in the product I work on, but ILSpy should gracefully handle the case instead of crashing with an ArgumentOutOfRangeException:

image

Solution

The fix is to simply skip any detected assembly that is at the root of the GAC being enumerated.

@dgrunwald dgrunwald merged commit 6641dc6 into icsharpcode:master May 28, 2023
@ificator ificator deleted the fixparentlessgacassembly branch May 28, 2023 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants