Description
PSScriptAnalyzer currently comes with a slightly outdated version of Json.NET. Any chance it could be updated to 11.x?
The problem this is actually causing for me is the usual collision between different assembly versions within an AppDomain. This is always frustrating in PowerShell, but most of the time an AssemblyResolve
handler can get around it if the newer version is loaded first. I have some things that are using Json.NET 11 (and actually using new features like generic JsonConverter
s) that end up breaking if ScriptAnalyzer and its older Json.NET gets loaded first. PS Core 6.1 appears to ship with the current version of Json.NET already, so this probably only affects Windows PowerShell. Our module repo is a long way from being Core-friendly so I honestly didn't test.