Giter Club home page Giter Club logo

Comments (1)

eli-darkly avatar eli-darkly commented on May 29, 2024

There are two problems here:

  1. Using an out-of-date SDK: 5.6.3 was the last release of the NuGet package called LaunchDarkly.Client, almost two years ago. As you'll see in the documentation and the changelog, the package name was changed to LaunchDarkly.ServerSdk starting in 5.6.4.
  2. Updating LaunchDarkly.EventSource separately from the SDK package. There is a specific dependency version of LaunchDarkly.EventSource for each version of the SDK package. That is the one it wants (and the same goes for any other LaunchDarkly packages that the SDK references). Since we follow semantic versioning, it should be OK to update a dependency to a later minor version— but it is never a good idea to update to a later major version (in this case, from 3.x to 4.0) because, by definition, new major versions are likely to be backward-incompatible. The 4.0.0 release of LaunchDarkly.EventSource is not meant for this version of the SDK, but for the upcoming 6.0 version.

If you're using .NET Core, you should never need to add or update transitive dependencies explicitly— your application should only have a dependency on the SDK itself, not on any of the other things the SDK uses. Then you'll always be getting the right version.

If you're using ASP.NET, unfortunately it will default to using the old-style "packages.json" format for dependencies, and it will add in all of the transitive dependencies there explicitly when you install the SDK, so there's no way to avoid having them listed as dependencies of your app. But, instead of trying to update those separately, the right way to go is to uninstall all of the LaunchDarkly packages and then install the new version of the SDK— causing it to bring in the correct versions of the transitive dependencies for that version.

from dotnet-eventsource.

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.