Skip to content

Use Assembly.LoadFile in WinPS - #1227

Merged
Rob Holt (rjmholt) merged 3 commits into
PowerShell:masterfrom
rjmholt:loadfile-dependencies
Mar 11, 2020
Merged

Rob Holt (rjmholt) merged 3 commits into
PowerShell:masterfrom
rjmholt:loadfile-dependencies

Conversation

@rjmholt

Copy link
Copy Markdown
Contributor

Switch over to using Assembly.LoadFile() instead of Assembly.LoadFrom() to load dependency assemblies in WinPS to avoid clobbering module dependencies.

Fixes PowerShell/vscode-powershell#2397
Fixes PowerShell/vscode-powershell#2545

@rjmholt
Rob Holt (rjmholt) marked this pull request as ready for review March 11, 2020 19:01

@TylerLeonhardt TylerLeonhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with this if we wanna give it a go

@rjmholt
Rob Holt (rjmholt) merged commit 5b7af3f into PowerShell:master Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants