You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored assembly loading logic to only special-case System.Management.Automation in Windows PowerShell 5.1/.NET Framework. Other assemblies now use normal loading logic, improving compatibility and reducing unnecessary warnings.
$"[dbatools] Requested {assemblyName} version {requestedVersion}, but loaded version is {loadedVersion}. Using loaded version. This may cause compatibility issues if APIs differ.");
string.Format("[dbatools] Requested System.Management.Automation version {0}, but loaded version is {1}. Using loaded version.", requestedVersion, loadedVersion));
79
+
}
80
+
return loaded;
78
81
}
79
-
return loaded;
82
+
// If not found, fall through to normal logic (should not happen in PowerShell host)
0 commit comments