ALC should isolate all relevant dependencies #4194
Unanswered
JustinGrote
asked this question in
General
Replies: 3 comments
-
Note that I cannot confirm the issue reported at PowerShell/vscode-powershell#5032 , debugging works fine for me Using ms-vscode.powershell@2024.2.2 , PnP PowerShell 2.9.9, VS Code 1.92.2, PSVersion 7.4.5 . The issue reported on VS Code shows HTTP error 404 which sounds unrelated to .NET isolation. The user most likely expects a list that doesn't exist. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
powershell/src/Commands/Base/DependencyAssemblyLoadContext.cs
Line 12 in e06c687
per PowerShell/vscode-powershell#3510 (comment), this does not appear to be isolating dependencies as expected, especially key ones that conflict with the Visual Studio Code PowerShell extension. As a result, several users are unable to run or debug PnP.PowerShell in Visual Studio Code but can get it to run otherwise.
PowerShell/vscode-powershell#5032
Please update the assembly load context and relevant references to properly isolate in PS7+. @jborean93 has an excellent loader example here: https://github.com/jborean93/PowerShell-ALC/blob/main/ALCLoader/README.md
Beta Was this translation helpful? Give feedback.
All reactions