Same assembly was loaded into multiple contexts of an application domain #5128
Labels
Area-Engine
Bug: PowerShell 5.1
Bugs when using PowerShell 5.1.
Issue-Bug
A bug to squash.
Needs: Maintainer Attention
Maintainer attention needed!
Prerequisites
Summary
When opening a Windows PowerShell (x64) session in the embedded VSCode terminal, I found an error in fusion log (assembly binding log) saying
Newtonsoft.Json
was "loaded into multiple contexts of an application domain" and "might lead to runtime failures". I am not sure if this caused modules such as "Az.Accounts" behaving incorrectly in this session (see Not able to connect to Azure with Az.Accounts version 2.12.3 (get_SerializationSettings) from within Visual studio code), but please review the design and let us know if it's intentional or not.Fusion log:
These are the two
Newtonsoft.Json
assemblies that are loaded to the session, one net45 fromPSScriptAnalyzer
, another netstandard2.0 fromPowerShellEditorServices
.PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
.ps1
script to activate the extensionVisuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: