Comments (4)
This is an unfortunate side effect of the fact that we have to pin the version of the System.ServiceModel.*
packages to 4.10.x due to a breaking change in those packages with version 6.0.0 and above. See #19238 for details.
Mark this as "Engine-WG" for review.
from powershell.
@keithallenjackson For now, please consider using an AssemblyLoadContext to isolate your module, so that it will load the correct version of assembly for you. Please see https://github.com/daxian-dbw/PowerShell-ALC-Samples/tree/main/Resolving-Event-with-ALC if you are interested in doing so.
from powershell.
My current work project already utilizes an ALC, but it only works for non-foundational assemblies that are lazy loaded during runtime (sqlite as an example). It never even gets to the ALC logic for Bcl.AsyncInterfaces due to Bcl.AyncInterfaces being loaded before our assembly (and failing).
An important observation with #19238 is that ActiveDirectory loaded perfectly fine in 7.3.X, which included the correct Microsoft.Bcl.AsyncInterfaces version 7.0.0.0. As you can see from the import test results 7.3 does not have the import issue and it is because it includes the correct version as shown in the bcl library results
from powershell.
@keithallenjackson I didn't know that the v7.3.x ships with 7.0.0.0 Microsoft.Bcl.AsyncInterfaces.dll
. If you look at the pwsh.deps.json
in 7.2 and 7.4, you will find Microsoft.Bcl.AsyncInterfaces.dll
is an indirect dependency pulled in by System.Private.ServiceModel
.
However, by looking at the pwsh.deps.json
for v7.3.11 (under the $PSHome
folder), I found in v7.3 versions, the Microsoft.PowerShell.SDK.csproj
has a direct reference to the v7.0.0 version of Microsoft.Bcl.AsyncInterfaces
, but that direct dependency was removed in this PR: #19194 (see changes). Let me bring this to the team for discussion.
from powershell.
Related Issues (20)
- ConvertFrom-JSON broken with an array having only one element HOT 4
- Docker labels for v7.4 (no LTS prefix)
- TabExpansion2 should have help HOT 4
- Keep Same Folder When Splitting Terminal HOT 16
- Umlaute brake when using curl.exe HOT 6
- using assembly Path do not support environment variables HOT 7
- SDK: Closing a Runspace does not clean up resources HOT 7
- For native commands, variables are not expanded if argument begins with `-` (`-key=$var`, `-D$var`) HOT 9
- I don't understand. The existing logic is to not allow this method to be called multiple times from native code. HOT 2
- Why the command winget search Microsoft.PowerShell can not get the latest version(7.4.2) of powershell? HOT 3
- PowerShell installer wipes and replaces shortcut even if nothing was changed in the executable path name or arguments HOT 2
- GDPR consent problem: PowerShell 7.4.2 installer forcefully enables telemetry on upgrade even if previous version was installed with telemetry disabled HOT 2
- `ConciseView` error view mangles `ParseException` child classes with custom message HOT 4
- Can not upgrade via `winget upgrade` HOT 6
- Test-Json has false positives when using anyof and allof statements in JSON schema HOT 2
- Inside a class method, the PowerShell parser cannot detect that a variable that is declared and assigned in all branches of a switch statement has actually been assigned a value HOT 3
- [System.Convert]::FromBase64String causes memory leak with large strings HOT 65
- serious security bug - auto completion reveals password HOT 11
- https://aka.ms/pwsh-buildinfo-lts points to the wrong release HOT 1
- Clearing gateway using powershell WMI does not function as expected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershell.