Git Product home page Git Product logo

Comments (4)

daxian-dbw avatar daxian-dbw commented on June 12, 2024

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.

daxian-dbw avatar daxian-dbw commented on June 12, 2024

@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.

keithallenjackson avatar keithallenjackson commented on June 12, 2024

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.

daxian-dbw avatar daxian-dbw commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.