Add-Type ReferencedAssemblies only works with full file paths now? #23791
Labels
Issue-Bug
Issue has been identified as a bug in the product
Needs-Triage
The issue is new and needs to be triaged by a work group.
WG-Engine
core PowerShell engine, interpreter, and runtime
Prerequisites
Steps to reproduce
This should work, but it does not anymore.
I have to pass the full path to the DLLs to get them to load:
This appears to be because the assemblies are in
$PSHome
butAdd-Type
is searching$PSHome\ref
PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/AddType.cs
Lines 801 to 808 in 0f3fd20
PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/AddType.cs
Lines 643 to 646 in 0f3fd20
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: