Skip to content

Try Assembly.Load correctly - #792

Merged
Andy Jordan (andyleejordan) merged 1 commit into
masterfrom
andschwa/assembly-load
Apr 9, 2016
Merged

Try Assembly.Load correctly#792
Andy Jordan (andyleejordan) merged 1 commit into
masterfrom
andschwa/assembly-load

Conversation

@andyleejordan

Copy link
Copy Markdown
Member

This should resolve #791.

Instead of checking if Assembly.Load returned null (it doesn't), check
if it threw FileNotFoundException, which it will if it doesn't find
the assembly.


This change is Reviewable

This should resolve #791.

Instead of checking if `Assembly.Load` returned null (it doesn't), check
if it threw `FileNotFoundException`, which it will if it doesn't find
the assembly.
@andyleejordan

Copy link
Copy Markdown
Member Author

Tested, allows loading libraries from modules just fine now.

@andyleejordan
Andy Jordan (andyleejordan) merged commit beda291 into master Apr 9, 2016
Andy Jordan (andyleejordan) added a commit that referenced this pull request Apr 9, 2016
@andyleejordan
Andy Jordan (andyleejordan) deleted the andschwa/assembly-load branch April 9, 2016 04:43
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
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.

Fix ALC when assembly is not in TPA

1 participant